Sometimes we need to return payments back to customer. On this documentation we'll add Refund button to Cash account sceen.
We'll start by creating an account for Cash Refunds so we can track its amount. I named it as "Cash Refund" and selected Account Type as "Refund Accounts" that I've recently created.
Second step will be telling SambaPOS how Cash Refund account works. When we refund cash it will decrease "Cash" account amount and increase "Cash Refund" account amount. We can configure it by creating a new account transaction type and configure it as shown at the screen shot.
Finally we'll need a button on cash screen for that transaction. We can do it by adding an Account Transaction Document Type.
After setting up visual parameters we'll set Account Type as "Payment Accounts" and we'll add "Refund Cash Transaction" to the Transaction Types list. That means when we click "Refund Button" it will create "Refund Cash Transaction"
We'll switch to Mappings page to map this document type to admin user role. Click Save to save your changes.
This is how my accounts screen looks like. I'll click Cash and Click "Display Details"
We have a "Refund" Button. Click it to create a transaction.
... and refund $5.