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

Remove associated invoice-lines when removing an invoice

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 1.0.0
    • Labels:
      None
    • Template:
    • Sprint:
      ACQ Sprint 64, ACQ Sprint 65
    • Story Points:
      2
    • Development Team:
      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

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