How to confirm Sales return if following error ‘Sales return amount does not match with invoice amount ‘occurs on confirm button click ?

Cause:
1) Sales return will not get confirmed if Sales return header have full return flag is ‘Yes’ and in detail, only a single line is added against Invoice. System will show the error ‘invoice amount is not matched with Sales return amount.’
Remedies:
1) If user wants to return a single item against the invoice then please change the header flag Full return to ‘No’.
2)If sale return is for invoice cancellation then the header flag should be ‘Yes’ else for partial return against invoice it should be ‘No’.