Hello Hanmanth,
Try this logic
Check the TO Qty = Delivery Qty and then if you have multiple TOs then go with the TO Creation time as latest.
Also The Source Quant might not change. Hence Save the Source Quant for a line item while picking and Compare it with all the TOs created for that Delivery.
In this way the Cancelled TOs would not have the same Source Quant as the Picking TOs.
Thanks,
Sai Arala.





