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

    • Type: Story
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 12.0.0
    • Labels:
      None
    • Template:
      Thunderjet/Firebird Back-end Story Template
    • Sprint:
      ACQ Sprint 105
    • Story Points:
      3
    • Development Team:
      Thunderjet

      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

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    TestRail: Runs

                      TestRail: Cases