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

Prevent modifications to invoice/invoice lines once status is "Approved"

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 1.0.0
    • None
    • ACQ Sprint 64, ACQ Sprint 65
    • 5
    • Thunderjet

    Description

      Overview:
      When an invoice transitions to "Approved" many of the fields in the invoice and associated invoice lines should not be allowed to be updated. This extends to any later states as well such as "Paid" and "Cancelled". The Acquisitions interface fields document has been updated to include a column which indicates which fields this applies to.

      Approach:
      Modify the PUT endpoints for invoice and invoice-line to validate the changes and return an appropriate error if a "protected" field is being modified on an invoice with status "Approved", "Paid", or "Cancelled"

      Acceptance Criteria:

      • The fields indicated cannot be modified if the invoice has been "Approved", "Paid", or "Cancelled"
      • Unit tests have been updated (positive and negative test cases for both invoice and invoice-line)
      • API tests have been updated (positive and negative test cases for both invoice and invoice-line)

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                cmcnally Craig McNally
                cmcnally Craig McNally
                Craig McNally Craig McNally
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases