-
Type:
Task
-
Resolution: Done
-
Priority:
Highest
-
Affects Version/s: None
-
None
-
STOP TB Sprint 10
Background / Context
The trunat flow is used to clear out pending orders. Its closure logic is being revised so that older pending orders are not silently closed by the system.
Problem Statement
The current tru nat flow closes all pending orders regardless of when they were created. The business now requires that only same-day pending orders be auto-closed, while older pending orders stay open until a user manually closes or completes them.
Current Behaviour
- When the trunat flow runs, all pending orders are closed automatically, irrespective of order date.
Expected Behaviour / Requirement
- When the trunat flow runs, only orders that are pending for that day are closed automatically.
- All remaining pending orders (i.e., pending from previous days) are not auto closed. They remain pending and must be closed/completed manually.