CustomerRefund
Updated
A customer refund pays money back to a customer from a cash desk or a bank account. It raises receivable; it does not change the sales realization. It is not CustomerPayment.
| Kind | Document |
| Module | Sales |
| Menu | Sales → Documents → Customer refunds |
| State change | Command |
| Movements | Posting script on Paid |
Fields#
| Field | Caption | Points at |
|---|---|---|
LegalEntity |
Legal entity | LegalEntity, required |
Customer |
Customer | Customer, required |
Contract |
Contract | SalesContract, required |
Basis |
Basis | the order or invoice the refund belongs to; empty means the customer's advance on the contract |
CashDesk |
Cash desk | CashDesk |
BankAccount |
Bank account | BankAccount |
Amount |
Amount | money, must be greater than zero |
Notes |
Notes | string, 2000 |
ExchangeRate |
Exchange rate | decimal, precision 18, scale 8 |
A refund uses a cash desk or a bank account, exactly one of them. Contract currency must be the currency of that desk or account. Empty Exchange rate means one and is refused when the refund currency differs from the legal entity's.
Commands and states#
| State | Command | What happens |
|---|---|---|
| Draft | Pay refund | Paid. Receivable rises by Amount. The desk or bank balance falls by Amount. |
Pay refund (PayCustomerRefund) is bound to Draft. Paid is read-only. The stored captions match the names: Draft, Paid.
The command also refuses both a cash desk and a bank account, neither of them, a disabled desk or account, a currency mismatch, a closed fiscal period, and a date with no ledger period.
Registers#
On Paid:
- Receivable plus Amount, by customer and contract.
AmountFuncis amount × the refund rate (CustomerRefundTx). ReceivableByBasisplus Amount, by customer, contract, and basis. An empty basis is the advance slice.CashBalanceminus Amount, when Cash desk is set (CustomerRefundCashTx).BankBalanceminus Amount, when Bank account is set (CustomerRefundCashTx).- GL when Legal entity is set, Amount is above zero, and accounts resolve: debit receivables, credit the desk or bank cash account, at amount × the refund rate (
CustomerRefundGLTx).
Used by#
Where next#
Was this page helpful?