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

Re-integrate with encumbrance API

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 9.0.0
    • Labels:
      None
    • Template:
    • Sprint:
      ACQ Sprint 77, ACQ Sprint 78
    • Story Points:
      3
    • Development Team:
      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases