Invoices, credits and payments
An invoice’s Open Amount is what the customer still owes on it. It is never typed: OnERP works it out from the invoice itself, the credits released against it, and the payments allocated to it. This page explains how those pieces fit.
Three kinds of invoice
Section titled “Three kinds of invoice”Every sales invoice has an Invoice Type:
| Invoice type | What it is | Created by |
|---|---|---|
| Invoice | The bill: what the customer owes for goods or services | Create Invoice on an order, or by hand |
| Cancellation Invoice (Stornorechnung) | Withdraws an invoice in full | Cancel Invoice on the invoice |
| Correction Invoice (Rechnungskorrektur) | Credits part of an invoice | Correct Invoice on the invoice |
The type shows in the invoice list, in the tabs above it, and in the header of each invoice. Cancellations and corrections are called credits on this page. Which one to use, and how much each may credit, is in Cancellations and corrections.
How they refer to each other
Section titled “How they refer to each other”A credit names the invoice it credits in its Preceding Invoice, and each of its lines names the invoice line it credits. A payment names the invoices it settles in its Allocations. Every arrow below ends at the original invoice: credits and payments never refer to each other.
flowchart LR order["Sales order"] invoice["Invoice"] cancellation["Cancellation invoice"] correction["Correction invoice"] payment["Account transaction"] invoice -- "bills lines of" --> order cancellation -- "withdraws" --> invoice correction -- "credits part of" --> invoice payment -- "allocated to" --> invoice
The Document Flow section of an invoice lists the order it billed and the credits released against it, and opens each one. Payments are not listed there: find them in Finance → Account Transactions.
What the invoice adds up
Section titled “What the invoice adds up”Three amounts in the invoice’s Terms section are kept up to date automatically:
- Credited Amount — the totals of all cancellations and corrections released against the invoice.
- Paid Amount — every allocation to the invoice, plus the cash discount taken with it. A refund allocated to the invoice lowers it.
- Open Amount — the Total less the Credited Amount less the Paid Amount.
| Open Amount | Means |
|---|---|
| above zero | the customer still owes this much |
| zero | settled |
| below zero | the customer is owed this much back |

Only an ordinary invoice has these amounts. A credit owes nothing of its own, so its Terms section shows none of them. Drafts count for nothing: an amount changes when a credit is released or a payment is saved.
Why payments go to the invoice
Section titled “Why payments go to the invoice”A credit is not a second bill: it reduces the first, and carries no payment block. Every payment and every refund is therefore allocated to the original invoice, so its Open Amount alone answers what is still owed.
What the order adds up
Section titled “What the order adds up”An order line shows how much of it was invoiced. Each invoice line created from it adds its quantity; each cancellation line subtracts it again, so a cancelled order line can be invoiced a second time. A correction changes nothing on the order: the goods were delivered and billed, and crediting money does not undo either.
Payments do not touch the order at all. Whether an order is paid is read from its invoices.
An example
Section titled “An example”A customer is invoiced 1,190.00 (1,000.00 net plus 19% VAT).
| Step | Credited | Paid | Open |
|---|---|---|---|
| Invoice released | 0.00 | 0.00 | 1,190.00 |
| Correction for a damaged item, 119.00 | 119.00 | 0.00 | 1,071.00 |
| Customer transfers 1,000.00 | 119.00 | 1,000.00 | 71.00 |
| Customer transfers 71.00 | 119.00 | 1,071.00 | 0.00 |
When a paid invoice is credited
Section titled “When a paid invoice is credited”A credit released after the customer paid leaves a negative Open Amount. A paid invoice of 595.00 that is then cancelled shows Credited Amount 595.00, Paid Amount 595.00, and Open Amount −595.00: the customer is owed their money back.
Paying it back is a refund: an outgoing account transaction with −595.00 allocated to the same original invoice. The Paid Amount drops to zero and the Open Amount returns to zero. How to record it is in Record a payment.
What limits an allocation
Section titled “What limits an allocation”- The invoice is an ordinary invoice, never a credit.
- The invoice is in the payment account’s currency, and was sold by the company that holds the account.
- An allocation has the same sign as the transaction: money in settles, money out refunds.
- Together, the allocations take no more than the transaction’s amount. What is left stays with the partner as the Unallocated Amount.
- Amounts are whole cents, so an Open Amount can reach exactly zero.