Uploaded image for project: 'mod-orders'
  1. mod-orders
  2. MODORDERS-299

Re-integrate with encumbrance API

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 9.0.0
    • None
    • ACQ Sprint 77, ACQ Sprint 78
    • 3
    • Thunderjet

    Description

      Overview

      In MODORDERS-298, Integration with the encumbrance API was temporarily disabled while the finance app underwent several breaking changes (schema changes, API changes, etc.). Now that finances has stabilized, orders needs to re-integrate with the encumbrance API.

      Approach

      • Upon opening an order
        • count the number of encumbrances that will be needed - this is essentially the number of fund distributions across all POLs.
        • POST /finance/order-transaction-summaries
        • generate encumbrances and POST /finance/encumbrances
          Make necessary checks to see if there is enough money to be encumbered

      See the wiki for additional details

      Acceptance Criteria

      • Encumbrances are created (for each fund distribution) when an order transitions to open
      • Unit tests are updated
      • API tests are updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                KVupp Kruthi Vuppala
                cmcnally Craig McNally
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases