Details
-
Fix
-
Status: Approved (View Workflow)
-
Medium
-
Resolution: Fixed
-
2.7.3
-
None
Description
Current Situation:
Duplicate Order IDs are created in both the Order History and Daily Plan views. This behavior occurs when orders that are submitted via Daily Plan get canceled and resubmitted.
Steps to Reproduce:
Test Case 1: Duplicate Order ID in Order History
Release the schedule SCH-DUP-ORDER
- A planned order for today is created in the Daily Plan — expected behavior.
- Let run the scheduled order on the workflow WF-DUP-ORDER.
- Cancel the order. The cancellation is correctly logged in the Order History with its Order ID.
- Go to the Daily Plan and re-submit today's planned orders.
- Go back to WF-DUP-ORDER you will observe that a new order with the same Order ID is created.
Test Case 2: Duplicate Order ID in Daily Plan
- Release the schedule. SCH-DUP-ORDER
- A planned order for today is created in the Daily Plan — expected behavior.
- Let run the scheduled order on the workflow WF-DUP-ORDER.
- Cancel the order from the workflow view.
- Go to the Daily Plan and resubmit today's planned orders.
- Let run the scheduled order on WF-DUP-ORDER again
- Cancel this second order.
- Check the Daily Plan tab; duplicate Order IDs appear in the planned state.
Expected Behaviour:
No duplicate Order IDs should be created when the cancelled orders are resubmitted via Dailyplan