Uploaded image for project: 'mod-orders'
  1. mod-orders
  2. MODORDERS-454

User should NOT be able to delete an order or order line that is related to an invoice

    XMLWordPrintable

Details

    • Story
    • Status: Closed (View Workflow)
    • P3
    • Resolution: Done
    • None
    • 12.0.0
    • None

    Description

      Purpose/Overview:
      User should NOT be able to delete an order or order line that is related to an invoice. System should display error message (This order or order line is linked to (Invoice number(s)) and can not be deleted

      Approach
      When DELETE /orders/order-lines/id:

      • GET /inoice/invoice-lines?query=invliceLineId==id
      • if not empty return error
      • else delete line

      When DELETE /orders/composite-orders/id:

      • GET /orders-storage/order-invoice-relns?query=orderId==id
      • if not empty return error
      • else delete order

      Acceptance criteria:

      • logic updated
      • unit tests updated
      • integration test updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases