Uploaded image for project: 'mod-finance-storage'
  1. mod-finance-storage
  2. MODFISTO-59

Transaction Calculations - Encumbrance upon update

    XMLWordPrintable

Details

    • ACQ Sprint 77, ACQ Sprint 78
    • 3
    • Thunderjet

    Description

      Overview

      In order to ensure consistency we need to update several running totals upon transaction (allocation, transfer, payment, credit, encumbrance) within a database transaction. This ensures that either all of the records are updated, or none of them are.

      See the following wiki pages for details:
      Calculations

      • The story is about implementing recalculation upon update of encumbrance. The part of recalculations upon creating was implemented in story MODFISTO-29
        • when money moves from encumbered -> awaiting-payment
        • when encumbrances are released
      • Take into account that updating operation overlaps with migration scripts

      NOTE: Stay away from triggers if possible

      Acceptance Criteria

      • Running totals in budget and ledger are updated as described above upon transaction UPDATE
      • All tables involved are updated within a database transaction
      • Unit tests are updated
      • JavaMoney API is used for all calculations

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                KVupp Kruthi Vuppala
                siarhei_hrabko Siarhei Hrabko
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases