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

Cancel invoice : create logic to support invoice cancel operation

    XMLWordPrintable

Details

    • Thunderjet/Firebird Back-end Story Template
    • ACQ Sprint 132
    • 3
    • Thunderjet
    • Lotus R1 2022

    Description

      Purpose/Overview:
      In order to cancel an invoice we need to be able to Void the associated transactions. ie. payments, credits, pending payments. Meaning we might need a status of "Void" which basically tells the system to ignore these transactions. They will no longer count towards budgets and budget totals need to be updated. However, they will still appear in the transaction list so it is clear that they were voided.
      Also invoice, invoice lines and vouchers should have status "Cancelled"

      Approach:

      • Implement invoice status transition handler for cancelled invoices within InvoiceCancellService.java
      • Mark releated invoice lines and vouchers as Cancelled
      • Update payments/credits and pending payments field by setting invoiceCancelled = true

      Implement requests in following order:
      1. update transactions summaries
      2. set all pending payment cancelled
      3. set all payments/credits cancelled
      4. set all invoice lines canceled
      5. set all vouchers cancelled

      Acceptance criteria:

      • Logic updated
      • Unit tests created
      • API test created

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                dennisbridges Dennis Bridges
                Andrei_Makaranka Andrei Makaranka
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases