How to copy transaction of Distribution Order if error ‘Invaild Quantity Received ‘ occurs on the finish button click?

Cause: If Copy transaction of closed or confirmed Distribution Order is done. Then the system can populate/copy the shipped quantity and received quantity as per the copied record status. So on finish/save the system prompts that ‘Invaild Quantity Received !’ if shipped quantity and received quantity is not equal to zero.

Solution: When a user copies a transaction which is already closed or confirmed then the user should ensure that the shipped quantity and received quantity is set as zero before saving the record.
Please see the screenshot for reference