Updating a TR after confirming a TO with difference
We have a batch job to convert a TR into TO. Now the problem is when a TO is confirmed with a difference the TR is not getting closed. Because of this the open TR is getting converted into a new TO. Is there a way to close the TR once the TO is created for the entire TR qty?
For example, TR is for 100 qty. There are 2 two line items that got created because of different bins. First line item has qty of 60 and the 2nd line item has 40. User confirms the first line item with 60 qty and the 2nd line item he confirms the qty as zero. In this case I want the TR to be closed as the TO has been already created.
Thanks for all the replies...