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

Call awaiting-payment API upon invoice approval

    XMLWordPrintable

Details

    • 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

      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

            Activity

              People

                cmcnally Craig McNally
                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