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

budget/ledger unavailable shouldn't include overEncumbered amounts

    XMLWordPrintable

Details

    • ACQ Sprint 81, ACQ Sprint 82
    • 1
    • Thunderjet

    Description

      Overview

      This wasn't clear until working through some examples with dennisbridges but when creating encumbrances, the corresponding budget/ledger's unavailable amount should not include the amount overEncumbered portion of the encumbrance.

      Example:

      • We have the following budget:
        • allocated: $100
        • available: $100
        • unavailable: $0
        • encumbered: $0
        • awaitingPayment: $0
        • expended: $0
        • allowableEncumbrance: 110% (remaining allowable encumbrance: $110)
      • An order is placed for $110
        • allocated: $100
        • available: $0
        • unavailable: $100
        • encumbered: $110
        • awaitingPayment: $0
        • expended: $0
        • overEncumbered: $10
        • allowableEncumbrance: 110% (remaining allowable encumbrance: $0)

      In general the available and unavailable numbers only apply to "real" money, not overEncumbered/overExpended.

      Acceptance Criteria

      • the unavailable calculation in budget/ledger upon encumbrance is updated as described above
      • unit tests are updated

      NOTE: If the story is being handled before MODFISTO-59, just handle POST, else handle both POST and PUT operations

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                khandramai Viachaslau Khandramai
                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