DebtTransfer
Updated
A debt transfer moves a customer receivable or a supplier payable between bases without changing the total debt. It does not move cash or write a ledger entry.
| Kind | Document |
| Module | Settlement |
| Menu | Settlements → Documents → Debt transfers |
| State change | Command |
| Movements | Posting script on Transferred |
Fields#
| Field | Caption | Points at |
|---|---|---|
ID |
Number | number sequence |
LegalEntity |
Legal entity | LegalEntity, required |
Side |
Side | string: Receivable or Payable, required |
Customer |
Customer | Customer; required when Side is Receivable |
SalesContract |
Sales contract | SalesContract; required when Side is Receivable |
Supplier |
Supplier | Supplier; required when Side is Payable |
FromBasis |
From basis | the order whose debt is reduced; empty is the unallocated slice |
ToBasis |
To basis | the order that receives the debt; empty is the target unallocated slice |
Amount |
Amount | money, must be greater than zero |
Reason |
Reason | string, 200 |
Notes |
Notes | string, 1000 |
SupplierContract |
Supplier contract | SupplierContract |
ToCustomer |
To customer | Customer; empty means the same customer |
ToSalesContract |
To sales contract | SalesContract; empty means the same contract |
ToSupplier |
To supplier | Supplier; empty means the same supplier |
ToSupplierContract |
To supplier contract | SupplierContract |
Side is stored as Receivable or Payable. Empty To supplier contract with an empty To supplier keeps the same contract. Within one party and contract both bases must be filled and must differ; a transfer off the advance slice is refused. To another party or contract the bases may be empty. One functional currency only: a foreign source or target is refused.
Commands and states#
| State | Command | What happens |
|---|---|---|
| Draft | Transfer debt | Transferred. The amount leaves the source basis and lands on the target basis. |
Transfer debt (Transfer) is bound to Draft. Transferred is read-only. The stored captions match the names: Draft, Transferred.
The amount may not exceed what is open on the source ReceivableByBasis or PayableByBasis slice.
Registers#
On Transferred, only the scripts for that Side write. There is no GL script.
Receivable (DebtTransferReceivableTx):
ReceivableByBasisminus Amount on the source customer, contract, and from-basis; plus Amount on the target customer, contract, and to-basis.- Receivable moves only when the target customer or sales contract differs: minus on the source, plus on the target. Same party and contract leave the register unchanged.
Payable (DebtTransferPayableTx):
PayableByBasisminus Amount on the source supplier, from-basis, and supplier contract when set; plus Amount on the target.- Payable moves only when the target supplier or supplier contract differs.