VendorRefund
Updated
A supplier refund is money a supplier pays back into a cash desk or a bank account. It raises payable toward zero; it does not change the purchase order. It is not VendorPayment. The object caption is Supplier refund.
| Kind | Document |
| Module | Purchasing |
| Menu | Purchasing → Documents → Supplier refunds |
| State change | Command |
| Movements | Posting script on Paid |
Fields#
| Field | Caption | Points at |
|---|---|---|
LegalEntity |
Legal entity | LegalEntity, required |
Supplier |
Supplier | Supplier, required |
Basis |
Basis | the purchase order the refund belongs to; empty means the advance to the supplier |
CashDesk |
Cash desk | CashDesk |
BankAccount |
Bank account | BankAccount |
Amount |
Amount | money, must be greater than zero |
Notes |
Notes | string, 2000 |
Contract |
Supplier contract | SupplierContract |
ExchangeRate |
Exchange rate | decimal, precision 18, scale 8 |
A refund uses a cash desk or a bank account, exactly one of them. The desk or account must be in the supplier's currency (the supplier card, or the legal entity's when the card has none). Empty Supplier contract writes no contract slice. 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 | Receive refund | Paid. Payable rises by Amount. The desk or bank balance rises by Amount. |
Receive refund (ReceiveVendorRefund) 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:
- Payable plus Amount, by supplier. Legal entity is an analytic when the header has one. Supplier contract is an analytic when the header has one.
AmountFuncis amount × the refund rate (VendorRefundTx). PayableByBasisplus Amount, by supplier and basis. An empty basis is the advance slice. Supplier contract is an analytic when the header has one.CashBalanceplus Amount, when Cash desk is set (VendorRefundCashTx).BankBalanceplus Amount, when Bank account is set (VendorRefundCashTx).- GL when Legal entity is set, Amount is above zero, and accounts resolve: debit the desk or bank cash account, credit payables, at amount × the refund rate (
VendorRefundGLTx).