By Artem Korsakov ·
An received invoice does not explain itself. To validate a charge, you must link the amount to the tariff and the event: what actually occurred, on what basis the service is calculated, and which terms were in effect.
Stages of a Single Cost
Plan, commitment, accrual, invoice, and payment describe different stages of one service. If you sum them together, the expense will be recorded multiple times. The report must show transitions between stages and the remaining commitment balance. Payment changes the monetary status but does not create new economic value. An accrued expense may exist without an invoice, and an invoice may be disputed. Therefore, cost forecasting cannot rely solely on received documents.
Learning Example: Free Period
A shipment of 10,000 tons is stored for six days. The tariff is 18 RUB per ton per day, with the first two days free. All figures are fictional; amounts exclude taxes.
Correct calculation: $18 × 10,000 × (6 - 2) = 720,000 \text{ RUB}$
The invoice accounts for all six days: 1,080,000 RUB. The difference of 360,000 RUB requires verification of the free period terms. The auditor must have access to three data points: the tariff line, the storage event, and the invoice version. A single red figure is insufficient if it is unclear who to ask or what specific question to pose.
Correction Replaces Previous Version
A corrected invoice for 720,000 RUB is not a second service. It relates to the same accrual and maintains a link with the original version. History is required to restore the reason for the adjustment and understand which document was confirmed. Re-importing the same version must be safe. To achieve this, use a stable identifier, version number, and matching rules. Matching by amount alone is insufficient: two different invoices may genuinely have the same cost.
Partial Payment and Balance
If 360,000 RUB has been paid against a confirmed invoice, the remaining balance is 360,000 RUB. The storage expense remains 720,000 RUB. You cannot display 1.08 million RUB as both the accrual and payment amount. In this prototype, payment is a learning marker. Real payments and accounting entries are not executed. For a production solution, the exchange format with the accounting system and confirmation rights must be defined separately.
Allocating Shared Costs
If an accrual applies to multiple shipments, select a confirmed base: mass, volume, or another metric. When allocating 720,000 RUB in a 9:1 ratio, the results are 648,000 RUB and 72,000 RUB. The sum of shares must exactly match the original amount. Rounding should be performed to the kopeck, and any remainder must be explicitly assigned to one of the shares. Do not automatically apply mass to all goods: for a different cargo composition, the correct basis might be occupied volume or contractual allocation.
First Launch and Verification Criteria
For a pilot, two types of services and one agreed import format are sufficient. Prepare examples of:
- A correct invoice
- An incorrect free period calculation
- Re-importing a version
- Partial payment
- A correction
Verify that after each action, you can restore the source of the result.
Metrics:
- Time to resolve discrepancies
- Number of repeated documents
- Share of amounts without explainable basis
Not all differences represent savings: some deviations are confirmed after review. The impact of accepted expenses on delivery results is detailed in the commercial model.
Development Team
What’s Next Next material: Logistics Cost Forecasting: How to Compare Delivery Scenarios (4 min read)
Solutions Catalog of solutions with demos
Sites, Services, and Automation Similar task: Discuss your task | Estimate volume, timeline, and budget
