One Truck, Three Orders: Why Orders and Shipments Must Be Separate Records
An order is a commercial promise. A shipment is a truck, a container or a wagon. Treating one as a child of the other works until the first consolidated load, and then every report is wrong.
1. Where the simple model breaks
A trading desk that sells tile, stone and packaging rarely ships one order in one vehicle. A large order leaves in parts, and a truck is filled with lines from several customers to use its full capacity.
If a shipment can only belong to one order, staff start keeping the real picture in spreadsheets and chat. Remaining quantities, freight cost per customer and the document set for the border all live outside the system.
2. Allocation is the missing record
In TOMS a shipment has its own number and links to orders through allocations: this shipment carries 700 m² of this line of this order. Ordered, shipped and remaining quantities are always calculated from those allocations.
The system refuses to allocate more than a line has left, warns about mixed units or destinations before the shipment is confirmed, and never merges the same product from two customers into one anonymous quantity.
3. Costs and profit follow the allocation
Freight, insurance, customs and handling are paid per shipment but earned per order. Each cost is split across the orders on board by value, weight, volume, quantity, pallets, cartons or by hand.
That gives two honest answers at once: what this truck contributed, and what this order earned after its share of every truck it travelled on. Try the split in the sandbox below.