Hi,
Please provide an example for return scenario. I have checked above code with following condition and works fine.
1. Created PO with quantity of 1 ea
2. Received more than one in GRPO. But TN blocks the transaction. So just received with same as PO quantity
3. Raised purchase return document and PO status changed to open.
4. Again raised GRPO with more than PO quantity. TN blocks as expected.
In this scenario, there is no effect of good return. Let me know your feedback.
Thanks & Regards,
Nagarajan