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

Set item status to "Order closed"

    XMLWordPrintable

Details

    • ACQ Sprint 83, ACQ Sprint 84
    • 2
    • Thunderjet

    Description

      Overview

      When an order is closed for any reason, item records for which pieces have not yet been received (have an item status "On order") are problematic as they currently can not be deleted or otherwise updated.

      Given the order has pieces for which item records were created
      When the order is closed
      Then set item status of all "On order" items to a status of "Order closed"

      Given an order had pieces for which item records were created and their status was set to "Order closed"
      When re-opening the order
      Set status of related items to "On order"

      Notes

      Clarification based on findings during testing:

      PUT /orders/composite-orders (without compositePoLines)

      • you should be able to update workflow status (this is what the UI currently does)

      PUT /orders/composite-orders (with compositePoLines)

      • the eventbus asynch processing will kick in and set the workflowStatus based on paymentStatus/receiptStatus
      • We probably want to avoid triggering the asynch processing if workflowStatus is changed. See MODORDERS-369

      Whenever workflowStatus changes (Open/Closed), item statuses should be adjusted

      Acceptance Criteria

      • Item statuses are updated as described above
      • Unit tests are updated
      • API tests are updated

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases