Skip to content
Tutorials Center
My learning

Topics

Lesson 6 of 36 ยท Business Processes

Order to Cash (O2C)

Walk through the order-to-cash process: quotation, sales order, credit check, delivery, invoice, payment and reconciliation, with the accounting entries and a runnable simulation.

Order to cash (O2C, sometimes "order to revenue") is the process that starts when a customer asks for something and ends when the money is in the bank. It is the process most businesses care about first, because it turns work into cash. It crosses sales, warehouse, shipping, finance and credit control, so it is also the clearest example of why an integrated system helps.

This lesson walks through each step, the document created at each stage, the accounting entries behind it and common exceptions. The real systems are not available here, so the examples are Python stand-ins that model the logic.

The steps

flowchart LR
  A["Quotation"] --> B["Sales order"]
  B --> C["Credit and availability check"]
  C --> D["Pick, pack, ship"]
  D --> E["Invoice"]
  E --> F["Payment received"]
  F --> G["Reconciliation"]

The standard order-to-cash chain.

  1. Quotation (optional). A price offer, valid for a period. Not binding on stock.
  2. Sales order. The customer's commitment: items, quantities, prices, delivery date. The system may reserve stock.
  3. Credit and availability checks. Does the customer have credit left? Is stock available (ATP, available to promise)? Orders can be blocked until approved.
  4. Delivery. Warehouse picks, packs and ships. Posting the goods issue reduces stock.
  5. Invoice (billing). Created from the delivery or the order; the customer is now billed.
  6. Payment. The customer pays; cash is received.
  7. Reconciliation (cash application). The payment is matched to the invoice so it is marked paid.

The accounting behind it

Double-entry accounting means each posting has equal debits and credits. A simplified example for a 1,000 sale with goods that cost 600:

Step Debit Credit
Goods issue Cost of goods sold 600 Inventory 600
Invoice Accounts receivable 1,000 Revenue 1,000
Payment Bank 1,000 Accounts receivable 1,000

Taxes add another line at invoicing (a tax payable account). Note that stock is relieved at shipping, revenue is recognised at invoicing, and cash arrives at payment, three different moments. You will see the ledger side in the finance module lesson.

Simulating the chain

Python From order to cash

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The receivable account ends at zero: the customer owes nothing. If payment had not arrived, the balance would be the open invoice.

Credit management

Selling on credit means taking a risk. ERPs offer a credit limit per customer, comparing the sum of open invoices and open orders against it. When the limit is exceeded the order is blocked and a credit controller releases or rejects it.

Python A credit check

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Typical exceptions

Real processes rarely go straight through:

  • Partial delivery: only some lines can be shipped now; the rest are backordered.
  • Returns and credit notes: the customer sends goods back; stock increases, a credit note reduces the receivable.
  • Price disputes: an invoice is challenged, so collection stops until resolved.
  • Short payment or unapplied cash: the customer pays less, or one payment covers many invoices.
  • Write-off: a debt will never be collected and is expensed.

Good ERP configuration handles these with defined paths and approvals instead of ad hoc workarounds.

Measuring the process

Common O2C indicators:

  • Order cycle time: order to delivery.
  • On-time-in-full (OTIF): share of orders delivered on time and complete.
  • Days sales outstanding (DSO): average days to collect after invoicing.
  • Invoice accuracy: invoices without disputes.
Python Days sales outstanding

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. At which step is stock normally reduced?

    Posting the goods issue moves the stock out of inventory and into cost of goods sold.
  2. 2. Which entry is made when the customer is invoiced?

    Invoicing creates a claim on the customer (receivable) and recognises revenue.
  3. 3. What does a credit block do?

    Orders that push exposure over the limit are held for review.
  4. 4. A DSO of 90 days means

    Days sales outstanding measures average collection time.

Summary

  • O2C runs from quotation to order, delivery, invoice, payment and reconciliation.
  • Stock leaves at goods issue, revenue is recognised at invoicing, cash arrives at payment.
  • Credit limits and availability checks protect the business.
  • Exceptions (partial deliveries, returns, disputes) need defined handling.
  • Track cycle time, OTIF and DSO.

Next: Procure to Pay