Test_CountNumbersOfItemInSlot.fsm
I'm trying to get slot wise item/SKU count using Custom Code in Process Flow.
I've created and tried 3 patterns, "Get SlotWiseItemCount" 1 to 3 but all 3 has issues.
There are diffrence in location of "WHERE" clause but all 3 Custom Code has practically the same SQL but all results are different and incorrect.
Since SQL is having WHERE condition, LocationCD = token.LocationCD, only single row should come but as you could find in attached model, it wont.
Please take a look into Custom Code "Get SlotWiseItemCount" 1 to 3.
Checking will be easier if you use Global Table "QueryDump".
Kindly let me know whether I have done something wrong.
Thanks for the support.