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

Add invoiceId and invoiceLineId to the awaitingPayment schema

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P2
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Labels:
      None
    • Template:
    • Sprint:
      ACQ Sprint 83
    • Story Points:
      1
    • Development Team:
      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

                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