Real margin lives in landed cost, not in the sales manager's spreadsheet.
Distribution means importing, receiving, pricing and selling to different channels — with commissions your reps will dispute. cifraHQ treats each of those as a domain, not a workaround.
The four pains every distributor knows
- Container cost arrives three weeks late. The first sales ship out at purchase cost, not landed cost. Reported margin is artificial and pricing decisions are made against the wrong number.
LandedCostVoucherwith five allocation methods closes that gap at receipt time — freight, duties, insurance and brokerage hit the right lines before the first sale. - Multiple warehouses, one ledger. Central, regional, in-transit, consignment — inventory lives in four places and moving stock between them breaks the monthly report. The P4W integration syncs warehouse moves in real time; the financial ledger only receives the events it needs —
GRN,Shipment,InventoryAdjustment— without mixing ops with accounting. - Pricing by channel and by volume. The institutional buyer pays differently than the retailer. Someone buying 10 cases doesn't pay the same as someone buying 100. Pricing supports lists per customer, per territory and per volume with versioned effective dates — the price that applied in March is reproducible in April.
- Commission disputes every month-end. Two reps touched the account, one says they closed it, the other claims a split. The Commissions engine evaluates territory rules in order, splits by configured percentage and assigns at invoice post time — with a waterfall report that shows exactly which sale pushed the rep to the next tier.
Three concrete mechanisms
Correct landed cost
<code>LandedCostVoucher</code> with methods by value, quantity, weight, volume or manual. Mixable per category — freight by weight, insurance by value — and preview before posting.
P4W sync
The <code>DB-per-tenant</code> financial ledger receives only the right WMS events. Stock per warehouse is always fresh; GL is never polluted with ops movements.
Rule engine with preview
Multi-tier quotas with accelerators, territory splits and automatic clawback on credit notes. Rules are versioned; test mode runs against real data before publishing.
From purchase order to rep payout
- Purchase → receipt → landed. The
PurchaseOrderbecomes aGRNat the warehouse; the landed cost voucher adds freight and duties to the right lines before inventory goes up for sale. - Channel sale with versioned pricing. The order uses the list active at post time. Later changes do not rewrite historical orders — the auditor sees exactly which price applied and why.
- Invoicing with
ITBMSand withholdings. The Panama tax engine applies the correct rate per line and emits the fiscal evidence without a separate manual step. - Commission at post time, payout at settlement. At invoice posting, commission is computed and assigned against the territory snapshot at that moment; payment waits for the configured
hold(30–60 days) to absorb returns.
Talk to sales for distribution
We'll walk through the full flow — import, landed cost, channel pricing and commissions — using the last real shipment you handled.