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

Don't allow transition to paid if invoice was not successfully approved before

    XMLWordPrintable

Details

    • Thunderjet/Firebird Back-end Story Template
    • ACQ Sprint 123
    • 2
    • Thunderjet

    Description

      Purpose
      Don't allow to pay for the invoice which was not approved before

      Overview:
      In current realization it is possible to pay for the invoice without approval and it leads us to situation, when voucher are not created (voucher are created only on Approval stage).

      Requirements/Scope:

      1. Block payment until invoice will be approved
      2. Clear error should be returned

      Approach:
      Add validation in the org.folio.rest.impl.InvoiceHelper#updateInvoice:
      1. Check that transition from "Approved" -> "Paid"
      2. Check that "approvedBy" and "approvalDate" are filled.

      Acceptance criteria:

      • Logic updated
      • Unit test created
      • API tests created

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                Andrei_Makaranka Andrei Makaranka
                Andrei_Makaranka Andrei Makaranka
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases