Uploaded image for project: 'mod-invoice'
  1. mod-invoice
  2. MODINVOICE-140

Create Pending payments upon invoice transition to approved

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      ACQ Sprint 89
    • Story Points:
      3
    • Development Team:
      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

              Activity

                People

                Assignee:
                Andrei_Makaranka Andrei Makaranka
                Reporter:
                cmcnally Craig McNally
                Tester Assignee:
                Andrei Makaranka Andrei Makaranka
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases