I had hard coded the values for the status open & executed module. For example for open order the JSON object should have status as not complete & not cancelled. And for executed order the JSON object should have status as complete & cancelled.
But now I saw many more status such as :-
open order:- OPEN,AMO REQ RECEIVED,TRIGGER PENDING executed order:- COMPLETE,REJECTED,CANCELLED
So how would I differentiate them & show in respective module.
Any order which contains status as COMPLETE, REJECTE or CANCELLE is executed order and the rest is considered as a pending order.