Skip to main content

Order-to-Cash Process

The Customer's Order Starts the Work​

Return to the furnishing project in our company story. The design-trade customer has selected goods, and the sales coordinator records the request. The immediate question is practical: what has the company promised, and what still needs to happen before the invoice is settled?

Begin by following the work from department to department without downloading a file. Later, trace a selected order and use its documents to explain what was delivered, billed, and settled.

Order-to-cash, or O2C, connects the customer's order with fulfillment, billing, and settlement. Sales, the warehouse, customer accounting, and treasury each contribute evidence. Their activities answer different questions about the same commercial relationship.

Record the Promise, Then Fulfill It​

The sales coordinator records the goods, quantities, and commercial terms on the sales order. This gives operations a statement of demand. In the dataset, the order itself creates no ledger posting: no goods have yet left inventory and no customer invoice has been posted.

The warehouse then considers what can be shipped. Available stock may support fulfillment, while a backordered quantity awaits supply. An order can therefore lead to more than one shipment. To explain a delivery concern, compare the requested goods with what actually shipped, keeping the dates and quantities in view.

A shipment records goods leaving inventory. This is the point at which the dataset recognizes the inventory reduction and cost of goods sold. Outbound freight also has its own expense and accrual effect. Those costs arise from fulfillment even though customer billing is a separate event.

The operations planner's supply work continues behind this activity. Purchased goods depend on inventory and replenishment, while manufactured goods also depend on production. The later purchasing and manufacturing chapters explain those responsibilities. An O2C investigation starts with what the warehouse actually fulfilled.

Bill the Goods That Shipped​

Customer accounting prepares the invoice using the shipped goods as support. The invoice tells the customer what is being charged and records a receivable, the amount owed to Charles River. The dataset records goods revenue at this invoicing event.

This separation makes timing visible. The order shows what was requested, the shipment shows what left inventory, and the invoice shows what was billed. You need each document to explain whether demand was fulfilled and whether shipped goods were invoiced.

In a goods-sale trace, an invoice line links to the shipment line it bills. The order and invoice totals alone cannot establish that relationship. Freight billed to the customer and sales tax also need to be distinguished from merchandise revenue when interpreting an invoice.

The customer may have design work billed as well. That work follows approved hours rather than a shipment. Complete the goods-sale settlement path before following design work in the next chapter.

Receive the Money and Apply It​

Treasury records customer money when it arrives. Customer accounting then identifies which invoice or invoices it settles. The record of that allocation is called a cash application.

In this dataset, a cash receipt increases cash and customer deposits or unapplied cash. Applying the receipt reduces that balance and reduces accounts receivable. This two-stage treatment lets you distinguish money received from an invoice actually settled.

A receipt can be applied across invoices, and an invoice can have settlement activity over time. To explain its open balance, examine the relevant applications as of the reporting date. A convenient receipt reference on an invoice-related record is not a substitute for that application evidence.

For the sales coordinator, the customer relationship may look complete once delivery has occurred. For the controller, the questions continue: was the delivery billed, what is owed, and what has been settled? Each answer belongs to a particular event and date.

Follow the Responsibilities​

Who hands the work to whom? Read the main BPMN from the customer's request through Sales, Warehouse, Accounting, and Treasury. A lane shows a responsibility, while arrows within the company show the sequence of activities.

Expand the diagram for a larger view with zoom and pan controls.

Download editable Draw.io

Model scope: One goods-fulfillment and customer-cash review pass; demand or balances can remain open.

Text description and database evidence
  1. The customer communicates an order. Sales records demand and commercial pricing; an order is not recognized revenue.
  2. Warehouse considers the available shipment for this pass. Unfilled quantity remains open; the model does not invent a rejection or automatic replenishment workflow.
  3. Available goods ship. Customer accounting invoices the shipped lines and records invoice-related commission accrual.
  4. Treasury records cash arrival as cash and unapplied customer money. Advance receipts may occur independently of the sequence shown here.
  5. Customer accounting reviews allocation of received cash. Applications may be recorded, or money may remain unapplied. The end records completion of this review pass, not full order or invoice settlement. The related detail includes receipt capture for context; this parent review starts after the receipt.

Evidence tables: SalesOrder, SalesOrderLine, Shipment, ShipmentLine, SalesInvoice, SalesInvoiceLine, SalesCommissionAccrual, CashReceipt, CashReceiptApplication, GLEntry.

Confirm keys and accounting sources in the Schema Reference and Posting Reference.

This goods-path teaching allocation summarizes stored events, not a verified workflow engine or proof of segregation of duties. Service delivery, returns, and detailed cash application have separate models. Independent shipment-to-billing-to-GL reconciliation is a proposed teaching control.

Editable visual model in Draw.io XML; this is not executable BPMN XML. Notation and model library.

Start with the available-stock decision, then follow fulfillment into billing. At the cash-allocation review, notice that money can remain unapplied. Reaching that review's endpoint does not mean every invoice has been fully settled.

The lanes are a teaching model. They do not prove that recorded tasks were performed independently by different employees. Actual employee and approval fields support that separate investigation.

Connect the Events to the Records​

The following map answers a narrower question: which records help explain the goods, the bill, and its settlement? You do not need to memorize the table names. Read them as labels for documents you now understand.

Record and accounting evidence map

Expand the diagram for a larger view with zoom and pan controls.

Download editable Draw.io

Read the connectors and evidence boundaries

An order leads to shipment and invoice records. A separate cash receipt passes through an application to the invoice.

Line and pathMeaningEvidence to check
r1
SalesOrder / SalesOrderLine
to Shipment / ShipmentLine
Stored FK path
Shipment.SalesOrderID → SalesOrder.SalesOrderID
ShipmentLine.SalesOrderLineID → SalesOrderLine.SalesOrderLineID
r2
Shipment / ShipmentLine
to SalesInvoice / SalesInvoiceLine
Stored FK path
SalesInvoiceLine.ShipmentLineID → ShipmentLine.ShipmentLineID
r3
CashReceipt
to CashReceiptApplication
Stored FK path
CashReceiptApplication.CashReceiptID → CashReceipt.CashReceiptID
r4
CashReceiptApplication
to SalesInvoice / SalesInvoiceLine
Stored FK pathApplied to
CashReceiptApplication.SalesInvoiceID → SalesInvoice.SalesInvoiceID

Keep the record grains separate. Foreign-key paths, analytical matches, and business context answer different questions; read the numbered evidence table before joining.

Each box identifies a record, source label, or interpretive context. Check dates and grouping before comparing operational support with postings.

Follow the goods across the top path. Then follow received money through its application to the invoice. Use this map to follow the records, then consult the reference sections below for detailed joins.

The principal accounting events in the published model are:

EventWhat changes in the accounts
Sales orderNo ledger posting
ShipmentInventory decreases; cost of goods sold and outbound freight expense are recognized
InvoiceReceivables increase, with revenue and applicable tax recorded
Cash receiptCash and customer deposits or unapplied cash increase
Cash applicationCustomer deposits or unapplied cash and receivables decrease

Detailed postings include freight, commissions, and other related amounts. Start by explaining the events above before combining those additional effects.

When Cash Arrives Before Allocation Is Complete​

Suppose the controller is reviewing receivables at period end. The customer has sent money, but a receipt has not yet been fully applied. That situation calls for an explanation of both the cash balance and the invoice balance.

The receipt establishes that money was recorded. Applications establish how much reduced the selected invoice by the cutoff. A later application may explain eventual settlement without changing the earlier reporting-date position.

An open invoice is therefore a starting point for investigation. Check its due date, applications, credits, and reporting date before describing a collection failure. The ordinary cash path also has a returns branch: a credit memo can affect what remains owed, and a refund is a separate cash event.

Bridge an Event to an Entry​

Continue with the Lessons 4–6 sale records. The table widens the selected order-line trace to complete event vouchers that include both goods lines in the shipment and invoice.

Event and dateSupporting evidenceWhy the accounts changeCutoff question
Order, 2024-01-24SalesOrder 11 and its linesNo posting: a commercial promise is not delivered goods or recognized revenueWhat quantity is still unfulfilled?
Shipment, 2024-01-31Shipment 87 and its ledger voucherDebit COGS 5,985.33 / credit finished goods 5,985.33; debit freight-out expense 104.01 / credit accrued expenses 104.01What inventory left, and what freight liability remains?
Invoice, 2024-01-31SalesInvoice 202 and its ledger voucherDebit AR 12,248.33; credit goods revenue 11,397.78, freight revenue 103.00, and tax payable 747.55Which applications or credits exist by the chosen cutoff?
Receipt, 2024-02-22CashReceipt 173Debit cash / credit customer deposits and unapplied cash, 952.07 eachHas this receipt been allocated by this date?
Application, 2024-02-23CashReceiptApplication 225Debit customer deposits and unapplied cash / credit AR, 952.07 eachWhat remains after all relevant dated settlement records?

Predict before revealing: On February 22, does receipt 173 itself reduce invoice 202’s AR? What changes the next day?

Reveal the event distinction

The receipt increases cash and unapplied customer money. Application 225 reduces AR on February 23 without a second cash inflow. Exclude that application from a February 22 cutoff. Inspect the invoice's other applications and relevant credits before calculating its full balance from the selected records. Lesson 6 checks all 15 ledger rows and separates complete vouchers from one selected goods line.

Check Your Understanding​

The order is recorded. Has the dataset recognized the goods revenue?

No. The order records demand and commercial terms. Shipment records fulfillment and inventory cost, while the sales invoice records the receivable and goods revenue in this model.

A receipt exists, but the invoice still appears open. What should you inspect?

Inspect the applications to that invoice and their dates, alongside any relevant credits. The receipt alone does not establish how much of the invoice was settled at the selected reporting date.

Next Steps​

Continue the company story. The customer also needs design help. Continue to Design Services to follow work delivered through staff time.

Investigate this process. Finish Lesson 1, Lesson 2, and Lesson 3, plus Excel setup or SQL setup. Then follow Lesson 4: Follow a Goods Sale, followed by Lesson 5: Follow Customer Settlement and Lesson 6: Find the Accounting Entries. Check the selected lesson’s further prerequisites before beginning.

Find analytical evidence. Browse Sales and Customers queries and related reports. Use the Schema Reference for join keys and the Posting Reference for accounting effects.

Optional Reference​

Return to these sections when you have a specific question or an assignment that uses the data. The chapter above can be read without opening a file.

Look up documents, accounting entries, and traceability fields

Core Tables and What They Represent​

Process stageMain tablesGrain or event representedWhy students use them
Pricing and commercial setupPriceList, PriceListLine, PromotionProgram, PriceOverrideApprovalPricing rules, promotions, and rare override approvals behind a sales lineReview commercial terms, pricing controls, and margin drivers
Order captureSalesOrder, SalesOrderLineCustomer order header and ordered lineSee promised demand, ordered quantity, and freight terms before fulfillment
Service delivery and staffingServiceEngagement, ServiceEngagementAssignment, ServiceTimeEntryOne customer engagement, the employees assigned to it, and approved daily service hoursReview service staffing, approved billable versus non-billable time, and labor-cost snapshots
Service billing traceServiceBillingLineMonthly billed-hours rollup tied to one invoice lineTrace approved service hours into billed revenue without using shipment logic
Sales commissionsSalesCommissionRate, SalesCommissionAccrual, SalesCommissionAdjustment, SalesCommissionPayment, SalesCommissionPaymentLineCommission rate rules, invoice-line accruals, return clawbacks, and sales-rep paymentsTrace selling expense, commission payable, and settlement timing
FulfillmentShipment, ShipmentLinePhysical shipment event and shipped lineMeasure what actually left the warehouse, carrier choice, and shipment-level freight accrual
BillingSalesInvoice, SalesInvoiceLineInvoice header and billed lineTrace receivable creation, merchandise revenue, and billed freight back to shipment
Cash receiptCashReceiptCash arrival from the customerReview collection timing, unapplied cash, and deposit behavior
SettlementCashReceiptApplicationApplication of received cash to one or more invoicesMeasure true invoice settlement and open-AR reduction

When Accounting Happens​

EventBusiness meaningAccounting effect
ShipmentGoods physically leave inventory and customer fulfillment occursDebit COGS and freight-out expense, and credit inventory plus accrued expenses for outbound freight
Sales invoiceAccounting bills shipped quantity and creates the customer receivableDebit AR and credit merchandise revenue, freight revenue, and sales tax payable
Service invoiceAccounting bills approved design-service hours for the monthDebit AR and credit 4080 Sales Revenue - Design Services plus sales tax payable, with no shipment-driven inventory or COGS entry
Sales commission accrualAccounting recognizes commission earned on invoice-line revenueDebit 6290 Sales Commission Expense and credit 2034 Sales Commission Payable
Sales commission adjustmentA credit memo reverses commission on returned revenueDebit 2034 Sales Commission Payable and credit 6290 Sales Commission Expense
Sales commission paymentAccounting pays prior-month net commissions to sales repsDebit 2034 Sales Commission Payable and credit cash
Cash receiptCustomer money arrives, even if it is not yet matched to a specific invoiceDebit cash and credit customer deposits or unapplied cash
Cash applicationAccounting settles one or more open invoices with previously received cashDebit customer deposits or unapplied cash and credit AR

Key Traceability and Data Notes​

  • SalesInvoiceLine.ShipmentLineID is the main shipment-to-invoice traceability field in the normal O2C path.
  • Service invoice lines stay in SalesInvoiceLine, but ShipmentLineID stays null for those rows because no physical shipment occurred.
  • SalesOrder.FreightTerms, Shipment.FreightCost, Shipment.BillableFreightAmount, and SalesInvoice.FreightAmount show how outbound freight moves from commercial policy into operational cost and customer billing.
  • CashReceiptApplication is the true settlement table because it shows which invoices the cash actually cleared.
  • CashReceipt.SalesInvoiceID is compatibility metadata only and should not be treated as the authoritative settlement link.
  • SalesOrderLine carries pricing lineage through BaseListPrice, PriceListLineID, PromotionID, PriceOverrideApprovalID, and PricingMethod.
  • ServiceBillingLine is the authoritative hours-to-invoice bridge for design services, and ServiceTimeEntry is the approved-hours source behind that billing.
  • SalesCommissionAccrual is the invoice-line commission bridge. Its SalesInvoiceLine.LineTotal base excludes freight, sales tax, deposits, AR timing, and unapplied cash.
  • SalesCommissionAdjustment records credit-memo clawbacks, and SalesCommissionPaymentLine shows which accruals and adjustments were included in each sales-rep payment.
  • Some receipts remain unapplied for a period of time, which is useful for open-AR, unapplied-cash, and settlement-timing analysis.
Explore detailed process and analysis paths

Analytical Subsections​

1. Pricing and Commercial Terms​

What explains the price on an order line? Follow the base price, promotion, and any approved override into the recorded pricing method. Compare those inputs before interpreting margin or a pricing exception. The Schema Reference identifies the full relationships.

Record and accounting evidence map

Expand the diagram for a larger view with zoom and pan controls.

Download editable Draw.io

Read the connectors and evidence boundaries

Customer and item context connects through price lists, promotions, and override approval to a sales order.

Line and pathMeaningEvidence to check
r1
Customer and Item Context
to PriceList
Business context or account effectBusiness context; no direct foreign key is depicted
r2
Customer and Item Context
to PromotionProgram
Business context or account effectBusiness context; no direct foreign key is depicted
r3
PromotionProgram
to SalesOrderLine
Stored FK path
SalesOrderLine.PromotionID → PromotionProgram.PromotionID
r4
Customer and Item Context
to PriceOverrideApproval
Business context or account effectBusiness context; no direct foreign key is depicted
r5
PriceOverrideApproval
to SalesOrderLine
Stored FK path
SalesOrderLine.PriceOverrideApprovalID → PriceOverrideApproval.PriceOverrideApprovalID
PriceOverrideApproval.SalesOrderLineID → SalesOrderLine.SalesOrderLineID
r6
PriceList
to PriceListLine
Stored FK pathPriceListID
PriceListLine.PriceListID → PriceList.PriceListID
r7
PriceListLine
to SalesOrderLine
Stored FK pathPriceListLineID
SalesOrderLine.PriceListLineID → PriceListLine.PriceListLineID

Keep the record grains separate. Foreign-key paths, analytical matches, and business context answer different questions; read the numbered evidence table before joining.

Each box identifies a record, source label, or interpretive context. Check dates and grouping before comparing operational support with postings.

Tables involved

TableRole in the flow
PriceList, PriceListLineProvide the base commercial price by customer or segment scope
PromotionProgramAdds the promotion-based discount when one valid promotion applies
PriceOverrideApprovalCaptures rare below-floor approval support
SalesOrderLineStores the final pricing lineage on the ordered line

Starter analytical question: Which sales lines used standard price-list logic versus promotion pricing versus approved override logic?

Analytical plan

  • Objective: Compare pricing method, promotion use, and override approvals.
  • Evidence path: SalesOrderLine -> PriceListLine -> PriceList, plus PromotionProgram and PriceOverrideApproval.
  • Comparison: Group by PricingMethod, customer segment, item group, or sales rep.

2. Sales Commissions and Payable Settlement​

Commission accounting starts from posted customer invoice lines. The routine applies a simple rate matrix by revenue type and customer segment, accrues the expense to a dedicated payable, reverses part of that payable when a credit memo claws back returned revenue, and pays sales reps monthly in arrears.

Record and accounting evidence map

Expand the diagram for a larger view with zoom and pan controls.

Download editable Draw.io

Read the connectors and evidence boundaries

An invoice line and rate support commission accrual. Accrual, adjustment, and payment connect to ledger detail, and adjustments affect payment.

Line and pathMeaningEvidence to check
r1
Sales Commission Rate
to Sales Commission Accrual
Stored FK path
SalesCommissionAccrual.SalesCommissionRateID → SalesCommissionRate.SalesCommissionRateID
r2
Sales Commission Accrual
to GLEntry
Type-qualified ledger sourceGLEntry source type SalesCommissionAccrual and source ID
r3
Sales Commission Accrual
to Sales Commission Adjustment
Stored FK path
SalesCommissionAdjustment.SalesCommissionAccrualID → SalesCommissionAccrual.SalesCommissionAccrualID
r4
Sales Commission Adjustment
to GLEntry
Type-qualified ledger sourceGLEntry source type SalesCommissionAdjustment and source ID
r5
Sales Commission Payment
to GLEntry
Type-qualified ledger sourceGLEntry source type SalesCommissionPayment and source ID
r6
Sales Invoice Line
to Sales Commission Accrual
Stored FK path
SalesCommissionAccrual.SalesInvoiceLineID → SalesInvoiceLine.SalesInvoiceLineID
r7
Sales Commission Accrual
to SalesCommissionPaymentLine
Conditional source traceSourceDocumentType = 'SalesCommissionAccrual'
SalesCommissionPaymentLine.SourceDocumentID → SalesCommissionAccrual.SalesCommissionAccrualID; SourceDocumentType = 'SalesCommissionAccrual'
r8
Sales Commission Adjustment
to SalesCommissionPaymentLine
Conditional source traceSourceDocumentType = 'SalesCommissionAdjustment'
SalesCommissionPaymentLine.SourceDocumentID → SalesCommissionAdjustment.SalesCommissionAdjustmentID; SourceDocumentType = 'SalesCommissionAdjustment'
r9
SalesCommissionPaymentLine
to Sales Commission Payment
Stored FK path
SalesCommissionPaymentLine.SalesCommissionPaymentID → SalesCommissionPayment.SalesCommissionPaymentID

Read each numbered connector with its evidence explanation. Reference paths are not a time sequence; analytical support and account effects do not create additional stored keys.

Each box identifies a record, source label, or interpretive context. Check dates and grouping before comparing operational support with postings.

Tables involved

TableRole in the flow
SalesCommissionRateHolds the active commission-rate matrix by revenue type and customer segment
SalesCommissionAccrualRecords one commission accrual for each eligible invoice line
SalesCommissionAdjustmentRecords credit-memo clawbacks tied back to the original accrual
SalesCommissionPaymentRecords monthly net commission payments by sales rep
SalesCommissionPaymentLineShows which accruals and adjustments were included in the payment

Starter analytical question: Which sales reps and customer segments generated the highest net commission expense after credit-memo clawbacks?

Analytical plan

  • Objective: Review commission expense and clawbacks by rep, segment, and month.
  • Evidence path: SalesCommissionAccrual -> SalesCommissionAdjustment, plus Employee and Customer.
  • Comparison: Compare gross commission expense, clawbacks, and net commission expense by revenue type.

3. Shipment to Invoice Traceability​

Which shipped goods support the billed revenue? Follow the shipment line into the invoice line, retaining both dates and quantities. This view supports cutoff, completeness, and occurrence questions. Consult the Schema Reference for the full entity relationships.

Record and accounting evidence map

Expand the diagram for a larger view with zoom and pan controls.

Download editable Draw.io

Read the connectors and evidence boundaries

Labeled solid arrows follow stored keys through order, shipment, and invoice lines. Shipment and invoice have independent ledger-source routes.

Line and pathMeaningEvidence to check
r1
Customer
to SalesOrderLine and header
Stored FK pathCustomerID on order header
SalesOrder.CustomerID → Customer.CustomerID
r2
SalesOrderLine and header
to ShipmentLine and header
Stored FK pathSalesOrderLineID
Shipment.SalesOrderID → SalesOrder.SalesOrderID
ShipmentLine.SalesOrderLineID → SalesOrderLine.SalesOrderLineID
r3
ShipmentLine and header
to SalesInvoiceLine and header
Stored FK pathShipmentLineID
SalesInvoiceLine.ShipmentLineID → ShipmentLine.ShipmentLineID
r4
ShipmentLine and header
to GLEntry
Type-qualified ledger sourceGLEntry source type Shipment and source ID
r5
SalesInvoiceLine and header
to GLEntry
Type-qualified ledger sourceGLEntry source type SalesInvoice and source ID

Read each numbered connector with its evidence explanation. Reference paths are not a time sequence; analytical support and account effects do not create additional stored keys.

Each box identifies a record, source label, or interpretive context. Check dates and grouping before comparing operational support with postings.

Tables involved

TableRole in the flow
SalesOrder, SalesOrderLineShow the original customer promise, ordered quantity, and freight terms
Shipment, ShipmentLineShow what actually shipped, when it shipped, and the shipment-level freight accrual
SalesInvoice, SalesInvoiceLineShow what was billed from the shipped quantity and whether freight was billed to the customer
GLEntryShows the posted receivable, revenue, COGS, and freight effects

Key joins

  • ShipmentLine.SalesOrderLineID -> SalesOrderLine.SalesOrderLineID
  • SalesInvoiceLine.ShipmentLineID -> ShipmentLine.ShipmentLineID
  • GLEntry.SourceDocumentType plus SourceDocumentID or SourceLineID for posting trace

Analytical plan

  • Objective: Trace billed revenue back to the shipped line that supported it.
  • Evidence path: SalesOrderLine -> ShipmentLine -> SalesInvoiceLine.
  • Comparison: Filter invoice and shipment dates by month-end to test cutoff timing.

4. Cash Receipt, Application, and Settlement​

Which invoice did the money settle? Follow a receipt into its applications, then inspect the amounts and dates applied to the selected invoice. This separates cash arrival from settlement for open-receivable and unapplied-cash analysis.

Record and accounting evidence map

Expand the diagram for a larger view with zoom and pan controls.

Download editable Draw.io

Read the connectors and evidence boundaries

Solid labeled arrows identify receipt and invoice keys or independent posting sources. Dashed links explain the unapplied-cash account effect rather than a stored join.

Line and pathMeaningEvidence to check
r1
Cash Receipt
to Cash Receipt Application
Stored FK pathCashReceiptID
CashReceiptApplication.CashReceiptID → CashReceipt.CashReceiptID
r2
Cash Receipt Application
to Sales Invoice
Stored FK pathSalesInvoiceID
CashReceiptApplication.SalesInvoiceID → SalesInvoice.SalesInvoiceID
r3
Cash Receipt
to GLEntry
Type-qualified ledger sourceGLEntry source type CashReceipt and source ID
r4
Cash Receipt Application
to GLEntry
Type-qualified ledger sourceGLEntry source type CashReceiptApplication and source ID
r5
Sales Invoice
to GLEntry
Type-qualified ledger sourceGLEntry source type SalesInvoice and source ID
r6
Cash Receipt
to Customer Deposits and Unapplied Cash
Business context or account effectCredits account 2060
r7
Cash Receipt Application
to Customer Deposits and Unapplied Cash
Business context or account effectDebits account 2060

Read each numbered connector with its evidence explanation. Reference paths are not a time sequence; analytical support and account effects do not create additional stored keys.

Each box identifies a record, source label, or interpretive context. Check dates and grouping before comparing operational support with postings.

Tables involved

TableRole in the flow
CashReceiptRecords when customer cash arrived
CashReceiptApplicationRecords which invoices were actually settled
SalesInvoiceProvides the receivable being cleared
GLEntryShows cash, liability, and AR-clearing effects
warning

Do not use CashReceipt.SalesInvoiceID as the main settlement link. The authoritative settlement path is CashReceiptApplication, because one receipt can settle multiple invoices and some cash can remain unapplied temporarily.

Analytical plan

  • Objective: Separate cash arrival from invoice settlement.
  • Evidence path: CashReceipt -> CashReceiptApplication -> SalesInvoice.
  • Comparison: Compare receipt date, application date, and invoice due date for open-AR review.

5. Design Services and Monthly Hour Billing​

Hourly billing uses approved service time rather than shipment evidence. Follow the Design Services chapter for engagement, staffing, monthly billing, and labor-margin interpretation.

6. Backorder to Shipment Lag​

Where did time pass between the order, shipment, and invoice? Compare their dates while retaining the ordered and fulfilled quantities. Inventory shortages and partial fulfillment can explain timing differences that deserve closer investigation.

Record and accounting evidence map

Expand the diagram for a larger view with zoom and pan controls.

Download editable Draw.io

Read the connectors and evidence boundaries

A sales order reaches available finished goods. Enough stock proceeds to shipment and invoice; short stock leads through backordered quantity to a later shipment.

Line and pathMeaningEvidence to check
r1
Sales Order
to Available Finished Goods
Business context or account effectBusiness context; no direct foreign key is depicted
r2
Available Finished Goods
to Later Shipment
Business context or account effectEnough stock
r3
Later Shipment
to Later Sales Invoice
Business context or account effectBusiness context; no direct foreign key is depicted
r4
Available Finished Goods
to Backordered Quantity
Business context or account effectShort stock
r5
Backordered Quantity
to Later Shipment
Business context or account effectBusiness context; no direct foreign key is depicted

Conceptual fulfillment branches. Check the actual order-line and shipment-line quantities and dates; the diagram does not identify one receipt-to-shipment inventory lot.

Each box identifies a record, source label, or interpretive context. Check dates and grouping before comparing operational support with postings.

Tables involved

TableRole in the flow
SalesOrderLineShows the original promised quantity
ShipmentLineShows what quantity left inventory and when
SalesInvoiceLineShows when the delayed shipment was billed

Starter analytical question: Which customers or item groups show the longest lag between order capture, shipment, and billing?

Analytical plan

  • Objective: Measure fulfillment lag from ordered quantity to shipped quantity and billed quantity.
  • Evidence path: SalesOrderLine -> ShipmentLine -> SalesInvoiceLine.
  • Comparison: Compare order date, shipment date, and invoice date by customer, item group, or month.
Follow specialized process branches
Expand the diagram for a larger view with zoom and pan controls.

Download editable Draw.io

Model scope: One receipt and allocation review pass, allowing unapplied residual money.

Text description and database evidence
  1. Treasury records an incoming customer payment as cash and unapplied money, independently of invoice settlement.
  2. If an invoice allocation is identified, Customer Accounting records one or more applications. An unmatched receipt remains unapplied.
  3. After the selected applications, any remaining receipt amount stays unapplied; a fully allocated receipt ends this pass without a residual.
  4. Use CashReceiptApplication as the invoice-settlement bridge. CashReceipt.SalesInvoiceID is not an authoritative application link.

Evidence tables: CashReceipt, CashReceiptApplication, SalesInvoice, GLEntry.

Confirm keys and accounting sources in the Schema Reference and Posting Reference.

The model describes one selected receipt/application review pass, not an implemented matching queue. Reconciliation of dated receipts, applications, residual cash, and invoice balances is a proposed teaching control.

Editable visual model in Draw.io XML; this is not executable BPMN XML. Notation and model library.

The matching decision explains application versus remaining unapplied cash. The detail includes receipt capture as context for the parent allocation review that follows it. It is a teaching interpretation of the records, not evidence of an automated exception queue or a one-to-one execution binding between diagrams.

Expand the diagram for a larger view with zoom and pan controls.

Download editable Draw.io

Model scope: One goods-return and customer-credit resolution pass; refund remains optional.

Text description and database evidence
  1. The scope starts with returned goods from an already shipped and billed sale; Warehouse records the physical return.
  2. Customer accounting approves and issues a credit memo, including the related accounting and commission adjustment evidence.
  3. Allocate the memo against open receivables and retain any excess as customer credit. A single memo can affect both AR and customer credit; these are not mutually exclusive whole-memo outcomes.
  4. A customer credit may remain open or be refunded in cash. The gateway describes the recorded resolution, not an automatic refund policy.

Evidence tables: SalesReturn, SalesReturnLine, CreditMemo, CreditMemoLine, SalesCommissionAdjustment, CustomerRefund, GLEntry.

Confirm keys and accounting sources in the Schema Reference and Posting Reference.

Invoice, return, credit, refund, and commission records have different grains and dates. Independent validation of quantity, original invoice, approval, clawback, and refund authorization is a proposed teaching control.

Editable visual model in Draw.io XML; this is not executable BPMN XML. Notation and model library.

A physical return restores inventory. An approved credit memo reduces open receivables and retains any excess as customer credit, so one memo can do both. A later refund clears customer credit in cash. These events need not occur together. When a memo spans both accounts, compare the evidence-map endpoints with the detailed BPMN allocation step and actual GLEntry rows rather than interpreting the links as an exclusive gateway.

Returns, Credits, and Refunds​

Some sales do not end with the original invoice. In this dataset, returns are the main customer-side exception path inside O2C, not a separate business cycle. The exception starts from something that was already shipped and billed, then moves through physical return, financial correction, and sometimes cash refund if the customer had already paid.

Record and accounting evidence map

Expand the diagram for a larger view with zoom and pan controls.

Download editable Draw.io

Read the connectors and evidence boundaries

Stored line and header references connect return evidence to credit and optional refund records. Return, credit memo, and refund each have an independent type-qualified posting route.

Line and pathMeaningEvidence to check
r1
ShipmentLine
to SalesInvoiceLine
Stored FK pathShipmentLineID
SalesInvoiceLine.ShipmentLineID → ShipmentLine.ShipmentLineID
r2
ShipmentLine
to SalesReturnLine
Stored FK pathShipmentLineID
SalesReturnLine.ShipmentLineID → ShipmentLine.ShipmentLineID
r3
SalesReturnLine
to SalesReturn
Stored FK pathSalesReturnID
SalesReturnLine.SalesReturnID → SalesReturn.SalesReturnID
r4
SalesReturn
to CreditMemo
Stored FK pathSalesReturnID
CreditMemo.SalesReturnID → SalesReturn.SalesReturnID
r5
CreditMemo
to CustomerRefund
Stored FK pathCreditMemoID; a refund is a separate optional cash event
CustomerRefund.CreditMemoID → CreditMemo.CreditMemoID
r6
SalesReturn
to GLEntry
Type-qualified ledger sourceGLEntry source type SalesReturn and source ID
r7
CreditMemo
to GLEntry
Type-qualified ledger sourceGLEntry source type CreditMemo and source ID
r8
CustomerRefund
to GLEntry
Type-qualified ledger sourceGLEntry source type CustomerRefund and source ID

Read each numbered connector with its evidence explanation. Reference paths are not a time sequence; analytical support and account effects do not create additional stored keys.

Each box identifies a record, source label, or interpretive context. Check dates and grouping before comparing operational support with postings.

Exception stageMain tablesWhy students use them
Original billed shipmentShipmentLine, SalesInvoiceLineIdentify the shipment and invoice that the correction started from
Physical returnSalesReturn, SalesReturnLineShow returned quantity and the operational return event
Financial correctionCreditMemo, CreditMemoLineShow the customer-facing credit and its allocation to AR, customer credit, or both
Cash resolutionCustomerRefundShow when customer credit was returned in cash
EventBusiness meaningAccounting effect
Sales returnGoods come back after a shipment and invoice already existedDebit inventory and credit COGS
Credit memoAccounting reverses part of the original saleDebit sales returns and allowances, freight revenue when policy allows a freight credit, and tax reversal, then credit AR, customer credit, or both
Customer refundTreasury clears customer credit in cashDebit customer credit and credit cash

Traceability notes

  • SalesReturnLine.ShipmentLineID is the core operational return trace field.
  • CreditMemo.OriginalSalesInvoiceID ties the financial correction back to the earlier invoice.
  • CreditMemo.FreightCreditAmount shows when part of the original billed freight was credited back because the return reason justified it.
  • CreditMemoLine preserves the original pricing lineage through BaseListPrice, PriceListLineID, PromotionID, PriceOverrideApprovalID, PricingMethod, and Discount.
  • CustomerRefund is used only when the return scenario leaves customer credit that is later cleared in cash.

Record and accounting evidence map

Expand the diagram for a larger view with zoom and pan controls.

Download editable Draw.io

Read the connectors and evidence boundaries

The solid arrow identifies the original-invoice key. Dashed arrows describe accounting allocation and conditional later refund chronology, not database joins.

Line and pathMeaningEvidence to check
r1
SalesInvoice
to CreditMemo
Stored FK pathOriginalSalesInvoiceID on memo
CreditMemo.OriginalSalesInvoiceID → SalesInvoice.SalesInvoiceID
r2
CreditMemo
to SalesInvoice
Analytical match or aggregationReduces remaining AR when present
r3
CreditMemo
to Customer Credit
Analytical match or aggregationExcess credit after AR allocation
r4
Customer Credit
to CustomerRefund
Analytical match or aggregationLater refund if paid out

Keep the record grains separate. Foreign-key paths, analytical matches, and business context answer different questions; read the numbered evidence table before joining.

Each box identifies a record, source label, or interpretive context. Check dates and grouping before comparing operational support with postings.

This local lineage view distinguishes AR correction from customer credit. Its labeled links illustrate common endpoint relationships, not an exclusive gateway or a rule that every memo generates a refund. A memo may reduce the remaining AR and create excess customer credit in the same posting, including after partial settlement. Reconcile both account effects at the selected date, including any later clearance through CustomerRefund.

Evaluate controls and try the optional AIS activity

Risks, Controls, and Evidence​

Risk and control objectiveEvidence availableTeaching boundary
Unauthorized pricing: support an exceptional price with approvalSalesOrderLine.PriceOverrideApprovalID and PriceOverrideApproval request and approval fieldsTest the selected population; the presence of a record does not prove every override was authorized
Incomplete billing: account for shipped quantitiesShipmentLine and SalesInvoiceLine.ShipmentLineIDAn independent shipment-to-invoice reconciliation is a proposed teaching control, not a stored automated blocking rule
Incorrect settlement or refund: distinguish cash, AR, and customer creditCashReceiptApplication, CreditMemo approval fields, CustomerRefundCompare authorizers and dates; do not infer a complete control procedure from lane separation

Optional AIS Activity: Assess a Customer Handoff​

Context and objective: accounting needs a defensible view of whether goods fulfillment was billed and settled at a stated date. Interpret the BPMN model, identify a business risk, and connect a control objective to actual source evidence.

Prerequisites, tools, and sources: complete the goods-sale tracing exercise linked above. Use the published SQLite file with a SQL tool, or the Excel workbook with filters and lookups, plus the editable Draw.io model. Work from SalesOrderLine, ShipmentLine, SalesInvoiceLine, their headers, CashReceiptApplication, CashReceipt, and GLEntry. Add PriceOverrideApproval, CreditMemo, or CustomerRefund only if your selected issue needs that evidence.

  1. Record the source file, scope, reporting date, and actual document and line keys. Mark the corresponding activities and responsibilities on a copy of the model.
  2. Compare demand, fulfillment, billing, and application dates without duplicating header totals. Describe an observed gap or timing difference before assessing whether evidence supports a violation.
  3. Write one risk/control-matrix row naming the risk, objective, proposed owner, evidence, test, and limitation. Label any added independent review or hold as a proposed teaching control.

Assessed deliverable: submit the annotated model, a reproducible evidence table, and the risk/control row. Explain which observation could change a business decision and what follow-up evidence would be needed. One trace cannot establish population completeness, operational effectiveness, or misconduct. Extend the work through the existing O2C case and reports below. The BPMN and controls workshop supplies a reusable matrix format.

Choose a further investigation

Questions for Further Investigation​

  • Which orders shipped immediately and which became backorders?

  • Which shipment lines were invoiced later than the shipment date?

  • Which invoices remain open after cash applications?

  • Which customers pay one invoice at a time versus several at once?

  • Which pricing methods appear most often by customer segment or item family?

  • Which shipment lines were later returned?

  • Which returns reduced open AR versus created customer credit?

  • How do revenue, receivables, unapplied cash, collections timing, and return corrections differ by period?

  • Read Sales and Customers to compare revenue, pricing, receivables, customer credits, and deposits.

  • Read Statements and Cash to connect those results with working capital and cash conversion.

  • Read Design Services when you want the full staffing, approved-hours, and monthly service-billing branch that now sits inside customer revenue.

  • Read Resolve a Customer Account Review when you want a guided walkthrough from order through posting and settlement.

  • Jump to Returns, Credits, and Refunds when you want the main O2C exception path.

  • Read GLEntry Posting Reference and Schema Reference when you need the detailed posting or join logic.