Skip to main content
ERP Teacher
Knowledge guideGlobal (fictional rules)

Building a customer sales report

Group qualifying sales lines by customer ID for the period, align currency and treatment of returns and discounts, then sum.

Author
Seung-joo Park
Reviewer
Seung-joo Park
Last updated

The companies, items and codes in this article are fictional examples for teaching.

How we write and review

Applying the rule

A customer appears under two names with sales of 12 and 8 fictional units.

Verifying the common account ID reproduces a single customer total of 20.

A fictional example from the companion lesson

Situation
Fictional example · Hanbit Stationery put its advertising behind the open-market channel with the highest sales. Its fees were high, so its profit was below the own-shop channel, which a sales-only report did not show. (Figures are made-up teaching numbers.)
Result
Looking only at sales sends resources to a low-profit channel and misses improvement chances such as fee negotiation.

Decision table

Identify the applicable condition and use the action in the right column.
BranchConditionAction
First caseSame account IDCombine in one group
Second caseSame name onlyKeep identities separate

Frequently asked questions

What if a customer changed its name?

Group by a stable identifier and verify that transactions before and after the rename belong to the same account.

How should the example in this article be handled?

Verifying the common account ID reproduces a single customer total of 20.

Shouldn't we put more effort into the channel with the most sales?

Fees and cost differ by channel, so compare profit, which is sales less fees and cost. Also watch how profit moves when the fee rate changes.

Related reading and practice