Background
...
Add a Post Cash Receipts button to the POS Sales Invoice to create and post Customer Receipts and apply Customer Receipts to the Sales Invoice. (not done) Done
Error if the Sales Invoice is not posted.
Error if the total payment does not equal the total Sales Invoice Amount
Add a Sales Invoice lookup field to the Customer Receipt page.
Copy Sales Invoice to Customer Receipt.
Make sure to copy the Payment Method to the Customer Receipt.
Payment Method picklist on Customer Receipts should have the same values listed above
Bank Account must be the Undeposted Cash Account defined on the Company Setup.
...