Uploaded image for project: 'mod-invoice-storage'
  1. mod-invoice-storage
  2. MODINVOSTO-19

Remove associated invoice-lines when removing an invoice

    XMLWordPrintable

Details

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

    Description

      Overview:
      MODINVOICE-33 implemented the basic delete invoice endpoint which simply proxied the response to the storage module. This story builds upon that and also removes all associated invoiceLines before removing the invoice.

      If one of the invoiceLines cannot be removed, leave the invoice in place and return an appropriate error.

      Perform the related record deletions in a database transaction until DELETE CASCADE functionality has been added to RMB. See https://wiki.folio.org/display/FOLIJET/Working+with+transactions+in+modules+based+on+RMB

      Acceptance Criteria:

      • invoiceLines associated with an invoice are removed upon invoice removal
      • exception handling is implemented as described above
      • Unit tests are updated
      • API tests are updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                piotr_kalashuk Piotr Kalashuk
                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