Edit a Cash Sale with a status of Undeposited but has been refunded and change the amount. Upon saving it, the error is displayed: You can not change the amount of a transaction that has been deposited. You must first edit the deposit to remove this transaction.
It is expected that a refunded Cash Sale cannot be edited. However, the error thrown here is incorrect because the status of the cash sale is still Undeposited. The warning message should state that a Refund has been created from the Cash Sale. (This was filed as a Defect under: 223315 - Sales > Enter Cash Sales > List > Edit the amount of an Undeposited Cash Sale with cash refund throws an error : You can not change the amount of a transaction that has been deposited. You must first edit the deposit to remove this transaction)
If there is indeed a need to edit the refunded Cash Sale, the associated refund transaction must be removed first. Create a Saved Search for Cash Refund and its related Cash Sale.
This is related to SuiteAnswer ID: 18642 but it is for Cash Sales with Status of Deposited.