Credit notes calculations and validations
Shares all invoice validations (issue-date window, items, allowances/charges, delivery, transaction types) — differences only:
credit_note_reason_code: valid code if provided.original_invoice_id: required unless reason is Volume Discount.- Type mapping to original invoice:
380→381,480→81,389→261. Type81carries the same E/O/Z +company_idrestriction as480. Type261(self-billed credit note) needs the branch company/postal check — same bypass gap as self-billed invoices above.
When original_invoice_id is provided:
- Must reference an invoice, not another credit note.
customer_party_id(orsupplier_idfor self-billed) must match the original.issue_date≥ original'sissue_date.document_currency_codeandtax_currency_exchange_rate(if provided) must match the original.transaction_types, if provided, must match the original; otherwise inherited.- Every credit-note item must reference an item on the original invoice.
- Per-item line amount can't exceed the original line; cumulative credited amount across all prior credit notes for that item can't exceed the original line amount.
- Total
payable_amountcan't exceed the original invoice's.
Updated about 1 month ago
Did this page help you?
