Uploaded image for project: 'mod-finance'
  1. mod-finance
  2. MODFIN-113

Add invoiceId and invoiceLineId to the awaitingPayment schema

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P2
    • Resolution: Done
    • None
    • 2.0.0
    • None
    • ACQ Sprint 83
    • 1
    • Thunderjet

    Description

      Overview

      While implementing MODINVOICE-113, it wad discovered that the awaiting_payment schema needs a couple additional fields: "invoiceId" and "invoiceLineId". These are needed because the encumbrances are created from mod-orders before the invoice exists, so these fields in the encumbrance (transaction) cannot be set at the time of creation. The reference to the invoice is needed for purposes of all-or-nothing operations based on the invoice (awaiting payment, payments, and credits)

      New field:

      • invoiceId
        • string
        • required
      • invoiceLineId
        • string
        • optional

      The awaiting-payments API should set this field in the encumbrance (transaction) when making the other changes (adjusting encumbered/awaitingPayment). This logic update can be handled in MODINVOICE-113.

      Acceptance Criteria

      • the schema and example are updated
      • Update the awaitingPayment API to set transaction.sourceInvoiceId and transaction.sourceInvoiceLineId on the encumbrance.
      • Update awaitingPayments unit tests (and API tests if needed)
      • acq-models submodule in mod-invoice is 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