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

Create encumbrance upon order transition to "Open"

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 7.0.0
    • None
    • ACQ Sprint 64, ACQ Sprint 65
    • 2
    • Thunderjet

    Description

      Overview:
      The first step toward integration with finance is to encumber funds when an order is placed (transitions to Open). We already capture fund information in the fundDistribution portion of the PoLine, this is used in conjunction with the cost information to calculate and create encumbrances.

      For each PoLine {
         For each FundDistribution {
            If an encumbranceId isn't already set in this FundDistribution {
               Calculate the encumbrance against this fund (PoLine.cost.poLineEstimatedPrice * percentage)
               Create encumbrance with that amount and fund.  Update the fundDistribution w/ its id.
            }
         }
      }
      

      See API Listing Document for the appropriate encumbrance API to use

      Acceptance Criteria:

      • Encumbrances are created and linked to the PoLine fundDistributions as described above
      • Unit tests are updated
      • API tests are updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                cmcnally Craig McNally
                cmcnally Craig McNally
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases