FreightSteps

Academy 2.0

Open academy
Back to chapter lessons
Logistics process management05.02

The order, cargo and route data model

How to separate commercial orders, cargo units, transport legs, documents and events without losing accountability or history.

In this lesson

What you’ll learn to do

  • Distinguish order, cargo, route and transport-leg entities
  • Assign stable IDs and verifiable data sources
  • Check cross-field consistency and retain versions
  • Design events and statuses for multiple cargo units

Lesson duration: 70–90

01

Why a data model is needed

A customer request is not one text comment but a set of related entities. The order records the commercial obligation; cargo describes physical packages; the route defines the sequence of points; and a transport leg represents execution by a particular contractor. If everything is stored in “notes”, the system cannot check mass, addresses or changes.

In the teaching case, a customer instructs delivery of two containers from Constanța to Chișinău. This is one customer order, two cargo units and potentially two transport requests. Each entity has its own identifier and status. Do not automatically transfer the first container’s status to the second.

02

Identifiers and relationships

Create a stable internal order ID, separate cargo-package IDs and route-leg IDs. Store external references, such as booking, container, CMR and invoice numbers, as attributes with their sources: they may appear later or change. A container number does not replace the customer order number.

Relationships usually take the form “order → multiple cargo units” and “order → multiple legs”. A document may relate to the entire order or a particular container. In the event record, specify the affected entity’s ID so a delay on one leg does not close or block all others without justification.

03

Required fields and sources

An order requires the customer, instruction contact, agreed terms, currency, payer and confirmation date. Cargo requires a description, package count, gross mass, dimensions, packaging, special properties and data source. A route point requires operation type, address, time window, contact and confirmed status.

Do not replace an unknown value with zero. Mass “0 kg” means a measured zero, whereas “not provided” means missing information. Retain a confidence indicator: declared by the customer, confirmed by a document, measured at the warehouse. Sending a rate request with a critically unknown mass should trigger clarification, not an invented number.

04

Addresses, geography and sequence

A route is an ordered list of points, not a string “Constanța — Chișinău”. Include the collection terminal, transshipment location, customs point and final warehouse if they actually form part of the process. Store addresses structurally: country, locality, street, number, postcode and additional instructions.

Coordinates are useful but do not prove truck-entry accessibility. Check mass and height restrictions, opening hours and advance-slot requirements separately. For example, ETA 14:00 does not mean the warehouse has confirmed unloading at 14:00; these are two different facts and sources.

05

Transport legs and contractors

A leg links an origin and destination point, transport mode, operator, and planned and actual events. If a container moves by sea and then road, create two legs; do not put two modes in one field and lose accountability at the interface.

For each leg, record the confirmed carrier, contractor-order number, price, currency, included-service conditions and control events. Before confirmation, the operator is “proposed”, not “assigned”. Retain contractor replacements in history with the reason, time and decision approver.

06

Events, forecasts and statuses

Distinguish three kinds of time: planned (promised), forecast (ETA) and actual (confirmed event). A vessel may have a Monday ETA, arrive Tuesday and obtain release Wednesday. Recording only the latest time destroys deviation history.

Status must derive from a verifiable event: “vessel arrived” is not “container available for collection”; “delivered” is not “invoice paid”. Retain the update source and message-receipt time. If sources conflict, show uncertainty and a verification task rather than silently choosing a convenient status.

07

Documents and versions

Store a document as a separate entity: type, number, date, sender, recipient, link to order or cargo unit, and version. A commercial invoice, packing list, CMR and POD prove different facts. Do not rename one file as another document type merely for interface convenience.

If the customer corrects mass in the Packing List, retain the previous version and a link to the new one, identifying who replaced the document and when. Do not delete performance evidence after order closure; retention depends on law, contract and internal policy. Access rights must reflect business need.

08

Validation and consistency

Check data types, required fields, ranges and cross-field relationships. Package count is a non-negative integer; mass and volume require units; an arrival date cannot be treated as fact without a source. Cargo with hazardous properties requires additional information, not an empty generic checkbox.

Example: a request lists 12 pallets of 800 kg each, but total mass 8 600 kg. The product 12 × 800 = 9 600 kg; discrepancy 1 000 kg. The system must stop cargo-data confirmation and request reconciliation. Do not automatically correct the figure without the source’s authorisation.

09

Change history and accountability

When changing an address, mass, rate or contractor, retain old and new values, time, source, author and basis. The current record displays the active version; the log reconstructs the sequence of decisions. This matters for claims, additional-cost calculations and team learning.

Do not confuse a fact with approval: “customer requested an address change” is a request; “new address confirmed by carrier” is a separate event. When contractual terms differ, a change becomes operational only after the required agreement. Correcting a typo and changing a price have different confirmation requirements.

10

Workshop: two cargo units

Build a data schema: one order, two containers, two road legs, four address-related events and one POD per container. Specify every entity’s ID, required fields and the document’s link to the particular unit. Container A has confirmed release; B does not. Explain why the overall order cannot yet be marked fully ready for collection.

Check the training numbers: 12 pallets of 800 kg = 9 600 kg, while the declared 8 600 kg requires clarification; discrepancy 1 000 kg. Then model an unloading-warehouse change: customer request, carrier agreement, new address version, and price recalculation if needed. The output is a schema and event log, not merely an attractive route on a map.

11

Prerequisites and working output

Before independent work: 05.97. This topic’s output is a data dictionary and conflict log. You may read the overview earlier, but the solution is assessed after the prerequisites. All amounts, dates and rates below are specified for a teaching case, not a market offer or universal rule.

12

Practical package: Data dictionary and conflict log

DATA-502: order O-2 contains containers C1 and C2; each has a sea and a road leg. Packing List v 1: 12 pallets of 800 kg; v 2: the same 12 pallets, total mass 8600 kg. The author of v 2 has not yet confirmed the change. Create an entity dictionary and a mass-conflict entry.

Analysis. Four leg instances across two containers. Under v 1, mass is 9600 kg, difference 1000 kg. Retain both sources and conflict status; do not transfer a C1 event to C2. Fields: orderId, equipmentId, legId, eventId, value, unit, source, version, observedAt.

Assessment criteria: input data and units — 2 points; reproducible calculation/transition — 3; justification of the decision and limitations — 3; source, version and next responsible person — 2. Self-check benchmark: 8 out of 10 with no critical error: invented fact, unconfirmed authority or double counting. This is a teaching rubric, not professional certification.

Lesson materials

Open worked solution

DATA-502: order O-2 contains containers C1 and C2; each has a sea and a road leg. Packing List v 1: 12 pallets of 800 kg; v 2: the same 12 pallets, total mass 8600 kg. The author of v 2 has not yet confirmed the change. Create an entity dictionary and a mass-conflict entry.
Analysis. Four leg instances across two containers. Under v 1, mass is 9600 kg, difference 1000 kg. Retain both sources and conflict status; do not transfer a C1 event to C2. Fields: orderId, equipmentId, legId, eventId, value, unit, source, version, observedAt.

Separate the order, cargo units, route and legs
Define IDs, required fields and sources
Keep facts, ETAs and document versions separate
Check mass, release and change approval

Checklist
  • Separate the order, cargo units, route and legs
  • Define IDs, required fields and sources
  • Keep facts, ETAs and document versions separate
  • Check mass, release and change approval
Sources
Bibliography

Sources checked on 09.11.2026. Contractual models and standards are not universally mandatory law; check the implementation profile and accepted terms separately. Sources supporting the statements: DCSA — Track & Trace, transport event types and sources; GS1 — EPCIS 2.0 (2022), event identification and data exchange. Calculations, tariffs, management decisions, KPIs and the rubric are original teaching models. IFRS, where cited, provides accounting context and does not prescribe commercial prices or a mandatory regime for every company. For a live operation, check the current edition, jurisdiction and contract.