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

Call awaiting-payment API upon invoice approval

    XMLWordPrintable

    Details

    • Template:
    • Sprint:
      ACQ Sprint 77, ACQ Sprint 81, ACQ Sprint 82
    • Story Points:
      3
    • Development Team:
      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

                Assignee:
                cmcnally Craig McNally
                Reporter:
                cmcnally Craig McNally
                Tester Assignee:
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases