Details
-
Story
-
Status: Closed (View Workflow)
-
P3
-
Resolution: Done
-
None
-
-
ACQ Sprint 89
-
3
-
Thunderjet
Description
Overview
In order to better track money we're creating pending payments for every fundDistribution in invoice/invoice line.
When creating these pending payments, use the following values:
- amount = fundDistribution amount
- awaitingPayment.encumbranceId = fundDistribution.encumbrance
- awaitingPayment.releaseEncumbrace = invoice line release encumbrance
- source = invoice
- sourceInvoiceId = invoice.id
- sourceInvoceLineId = invoiceLine.id if fundDistribution belongs to Invoice Line
Note: Use the new invoice_transaction_summary.numPendingPayments field introduced in MODFISTO-90 when creating these awaiting payments instead of invoice_transaction_summary.numEncumbrances
See the wiki for additional context/details
NOTE: for now to create Pending payments use POST /finance-storage/transactions
Acceptance Criteria
- pending payments are created for each fund distribution in the invoice/invoice line
- unit tests are updated
- API tests are updated
TestRail: Results
Attachments
Issue Links
- blocks
-
MODINVOICE-166 MODINVOICE (mod-invoice) release
-
- Closed
-
- has to be done after
-
MODFISTO-89 Transaction schema changes to support creation pending_payment upon invoice approval
-
- Closed
-
- has to be done before
-
MODINVOICE-141 Validate budgets have sufficient money when creating pending payments
-
- Closed
-
-
MODINVOICE-165 Create pending payments for every Approved invoice upon module upgrade
-
- Closed
-
- has to be finished together with
-
MODFISTO-90 Support all-or-nothing operations for pending payments by invoice
-
- Closed
-
- relates to
-
MODFIN-131 Create the pending-payments API
-
- Closed
-
-
UXPROD-2393 Set money aside as awaiting payment for Invoices that are 'Approved'
-
- Closed
-