Vasu
The requirement here is not really clear to me. When you say
GATP should not allocate stock to lower priority order if a high priority order can not be fulfilled
AND when the high priority order has a greater requested quantity than the lower priority orders less requested quantity then supply can fulfill the lower priority order, but not the higher priority order;
Is the comparison between the order quantities of higher and lower priority orders? Or is it between the quantity of the sales order and the available ATP quantity?Because when you say that GATP should not allocate stock to lower priority order if a high priority order can not be fulfilled - your first example is not consistent with this statement:
Example: High Priority order Riq QTY = 100
But the lowest priority order Req Qty = 30
the available inventory = 50
Here you are confirming a lower priority order even when you are not able to fulfill the high priority order.
Can you fill the below table so that the requirement is clear?
Sr No | ATP Qty | SO1 with Low Prio | SO2 with High Prio | Expected Result |
---|---|---|---|---|
1 | 50 | 30 | 100 | SO1 to be confirmed fully |
2 | 50 | 30 | 40 | ??? |
3 | 50 | 70 | 60 | ??? |
4 | 50 | 60 | 70 | ??? |
Parth Soneji