Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
-
ACQ Sprint 77, ACQ Sprint 81, ACQ Sprint 82
-
3
-
Thunderjet
Description
Overview
When an invoice is approved, the related encumbrances need to be updated; Money moves from "encumbered" to "awaitingPayment". The new awaiting-payment API introduced by MODFIN-82 provides the means to do this.
Approach
- POST /finance/invoice-transaction-summaries
- For each fund distribution with an encumbrance:
- POST /finance/awaiting-payment
- Don't forget set releaseEncumbrances to the value of invoiceLine.releaseEncumbrance
- POST /finance/awaiting-payment
If any of these API calls fail, the invoice stays in "open" state and an error is returned to the client.
See the "All or nothing operations" section of the wiki for additional details.
Acceptance Criteria
- Appropriate calls are made to the finance module to move money from encumbered to awaiting payment and to release encumbrances upon invoice approval.
- Unit tests are updated
- API tests are updated
TestRail: Results
Attachments
Issue Links
- has to be done after
-
MODFIN-71 Create transaction APIs - Payments, Credits
-
- Closed
-
-
MODFIN-82 Create awaiting-payment API
-
- Closed
-
-
MODFISTO-59 Transaction Calculations - Encumbrance upon update
-
- Closed
-
- has to be done before
-
UINV-83 Prevent paying with Funds that have insufficient amounts to cover distribution
-
- Closed
-
- is blocked by
-
MODFISTO-86 Update encumbrance doesn't work as expected
-
- Closed
-
- relates to
-
MODFISTO-91 Budgets aren't updated correctly upon updating/releasing encumbrance
-
- Closed
-
-
MODINVOICE-114 Check remaining amount expendable upon invoice approval
-
- Closed
-
-
UXPROD-2167 Value management through transactions Part 2 - Payments, Credits and limits
-
- Closed
-
-
MODFIN-113 Add invoiceId and invoiceLineId to the awaitingPayment schema
-
- Closed
-