# Commercial analysis: sales, purchases, margins and collections for every customer

> Margin by customer, supplier and product, receivables aging, days to collect and commissions on cash collected, from ERP invoices, by entity and group.

Updated: 2026-11-26 · Author: Santiago Viglione (Fibady) · https://www.fibady.com/en/product/commercial-analysis

Fibady's commercial analysis turns your ERP invoices into the answers management wants from sales and purchasing: which customers and products make money, who pays late, how much you are owed and since when, and what commission each salesperson has earned. It has three sections — Overview, Sales and Purchases — and crosses the two to show margin by customer, supplier, product and period, per entity and for the group.

## Which customers and products actually make money?

Revenue tells you who buys the most; margin tells you who makes you money. Fibady puts each period's sales and purchases side by side and calculates margin by customer, supplier and product. A common finding: the customer at the top of the sales ranking, with €1.2m invoiced, leaves a 9% margin because it mostly buys the discounted line; the fifth, with €400,000, leaves 31%. With both numbers on the table, the commercial conversation changes.

Because margin is shown by period, you also see when a customer's or a product's margin starts to slip, not just how much it left over the year.

## Can I group customers or suppliers?

Yes. You create customer or supplier groups — by channel, region, key account or corporate group — and analyse them as one. It helps when the same customer invoices under several tax IDs, when you want to compare distribution with direct sales, or when a strategic supplier serves several of your entities.

## Who owes me money, and since when?

Next to the sales analysis you have invoices by customer and supplier, [receivables aging](/glossary/accounts-receivable-aging) by maturity bucket and payables pending. You see at a glance which part of what you are owed is current and which part is overdue, and drill down to the specific invoice.

[Days to collect](/glossary/dso-dpo) are shown with their month-by-month trend, per customer and in total. A DSO that rises three months in a row warns you before the bank balance does: if your portfolio's days to collect go from 55 to 70 on €3m of annual sales, you have roughly €123,000 more tied up in receivables.

## How are commissions calculated?

Each salesperson has a commission rule: a percentage of invoiced sales or only of cash collected. Fibady applies it invoice by invoice, so every amount can be explained without opening the commissions spreadsheet. If you pay on cash collected, an unpaid invoice earns nothing; if a credit note hits an invoice that already earned commission, the commission is clawed back in the next settlement.

## How does it fit with cash and the P&L?

The commercial analysis comes from the same ERP that feeds the [P&L and balance sheet](/product/financial-reporting), so there is no second source to reconcile with sales. And the collections you expect from customers feed the treasury conversation: if a large customer slips, you see it in the aging and carry it into the [cash forecast](/product/cash-flow-forecasting) before liquidity gets tight.

## What if I would rather ask?

Ask [FibadyGPT](/product/ai-agent) — "which ten customers have the largest overdue balance and how many days do they take to pay?" — or do it from ChatGPT, Claude or Gemini with the [MCP connector](/product/mcp-connector-chatgpt-claude-gemini). The figures come from the same Fibady engine.

## How Fibady does it

- Three sections: Overview, Sales and Purchases
- Margin between sales and purchases by customer, supplier, product and period
- Customer and supplier groups to analyse them together
- Invoices by customer and supplier, down to the individual invoice
- Receivables aging by maturity bucket and payables pending
- Days to collect per customer and in total, with their trend
- Commissions per salesperson on invoiced or collected sales, invoice by invoice, with clawback on credit notes
- Per entity and for the group, from the same ERP as the P&L

Data comes from your ERP: 50+ with a direct connector (SAP, [Business Central](/integrations/microsoft-dynamics-365-business-central), [NetSuite](/integrations/oracle-netsuite), [Odoo](/integrations/odoo), [Holded](/integrations/holded)…), or via Excel or API if yours has none. To build dashboards on these figures, see [dashboards and metrics](/product/dashboards-and-metrics).

## Frequently asked questions

### Where does the commercial analysis data come from?

From the sales and purchase invoices and the collections in your ERP. Fibady reads them together with the rest of each entity's accounting, with no intermediate exports.

### Can I see margin by customer and by product?

Yes. Fibady puts Sales and Purchases side by side and shows margin by customer, supplier, product and period. You can also group customers or suppliers to see them together.

### How is receivables aging shown?

By customer and by maturity bucket, with payables pending alongside and days to collect with their month-by-month trend. You see who pays late before it shows up in cash.

### Does it calculate sales commissions?

Yes. Each salesperson has their own rule, for example a percentage of invoiced sales or only of cash collected, and the calculation is shown invoice by invoice. If a credit note hits an invoice that already earned commission, it is deducted in the next settlement.

### Does it work with several entities?

Yes. The analysis is available per entity and for the group, and customer groups let you bring together a customer that buys from several of your subsidiaries.

Book a demo: https://www.fibady.com/en/demo
