Details
-
Bug
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
folio-testing
-
-
ACQ Sprint 83, ACQ Sprint 84
-
1
-
Thunderjet
Description
Overview
This follows MODFISTO-86 and concerns one particular case.
Updating an encumbrance w/ awaitingPayment which also has status Released.
The wiki was probably a little unclear about this logic. It has been updated. Specifically:
ALWAYS DO THIS PART:
- Update Budget identified by the transaction fiscal year (fiscalYearId) and the source fund (fromFundId)
- encumbered decreases by the difference between provided and previous transaction.encumbrance.amountAwaitingPayment values
- awaitingPayment increases by the same amount
- encumbrance transaction.amount is updated to (initial encumbrance - awaiting payment - expended)
IN ADDITION TO ABOVE, DO THIS PART IF ENCUMBRANCE IS RELEASED:
- If encumbrance.status = Released
- Update the encumbrance
- transaction.amount becomes 0 (save the original value for updating the budget)
- Update the budget identified by the transaction fiscal year (fiscalYearId) and the source fund (fromFundId)
- encumbered decreases by the amount being released
- available increases by the amount being released
- unavailable decreases by the amount being released (min 0)
- Update the encumbrance
Actual
It looks like we're only only performing the second part if status = Released. See the comments in MODINVOICE-113 for an example
Expected
See Above... in short:
- budget.encumbered decreases
- budget.awaitingPayment increases
- encumbrance.amount decreases
Acceptance Criteria
- logic if updated
- unit tests are updated
TestRail: Results
Attachments
Issue Links
- blocks
-
MODFISTO-92 Create MODFISTO Release
-
- Closed
-
- defines
-
UXPROD-697 Ability to facilitate ordering and invoicing in currencies other than default currency
-
- Closed
-
- relates to
-
MODFISTO-59 Transaction Calculations - Encumbrance upon update
-
- Closed
-
-
MODFISTO-86 Update encumbrance doesn't work as expected
-
- Closed
-
-
MODINVOICE-113 Call awaiting-payment API upon invoice approval
-
- Closed
-
-
MODINVOICE-147 Invoice approval fails if a voucherNumberPrefix isn't configured
-
- Closed
-