ModulesContainers
Modules

Containers in Jules

How Jules models physical shipping containers — from creation through loading, tracking, delivery, and invoicing close.

Containers in Jules

Product documentation — The container is the physical unit of execution in Jules. Everything flows through it: logistics, invoicing, margin, and tracking.


Table of Contents

  1. Overview
  2. Container Lifecycle
  3. Container Identity & Weights
  4. Container-to-Quality Mapping
  5. Booking Status
  6. Container Invoicing
  7. Container Margin
  8. Hedging Allocation
  9. Tracking & Location
  10. Container Follow-Up Grouping
  11. Invoicing Close
  12. Relationships with Other Modules
  13. Key Business Rules
  14. Glossary

Overview

A container in Jules represents a physical shipping unit — typically a 20' or 40' HC steel container — that carries recyclable commodities from a supplier to a customer. Containers sit at the intersection of almost every Jules module: they are created under operations, linked through allocations, grouped into bookings and shipments, invoiced individually, and tracked in real time.

The container is Jules' unit of execution. While operations define the commercial terms and allocations connect buy and sell sides, it is the container that physically moves, gets weighed, gets invoiced, and produces a margin.


Container Lifecycle

Every container progresses through a defined follow-up status:

StatusMeaningTrigger
UNPLANNEDContainer exists but has no loading dateContainer created without a date
PLANNEDLoading date has been setLoading date assigned
LOADEDContainer has been physically loaded onto a vesselWeight and BL data recorded
DELIVEREDContainer has arrived at destinationDelivery date and weight confirmed
CLOSEDAll invoicing and documentation completePurchase and sale invoicing closed

Status transitions

  • Statuses progress forward in sequence — you cannot skip from UNPLANNED to LOADED
  • A container can be moved backward (e.g., from DELIVERED to LOADED) if corrections are needed
  • CLOSED is the terminal state, but containers can be reopened if invoicing needs adjustment

Container Identity & Weights

Identity fields

FieldDescription
Harold numberUnique system-generated identifier (e.g., CTN-2026-001234)
Reference numberExternal container number (e.g., CLHU1234567)
Sealed numberSecurity seal number applied to the container
BL numberBill of Lading number assigned at loading

Weight fields

FieldDescription
Gross weightTotal weight including container tare
Net weightWeight of the commodity only
Tare weightWeight of the empty container
Weight slipWeight recorded at destination (from customer's scale)
Maximum gross weightLegal/shipping limit for the container

Weight is tracked in the operation's volume unit (typically metric tonnes). The difference between net weight (loaded) and weight slip (delivered) is a key input for credit/debit note calculations.

Key dates

FieldDescription
Date of loadingWhen the container was loaded
Date of deliveryWhen the container arrived at destination
ETAEstimated time of arrival
Gated-in dateWhen the container entered the port terminal

Container-to-Quality Mapping

A single container can carry multiple qualities from the same operation. The ContainerToOperationQuality mapping tracks the quantity of each material in the container at different stages:

Quantity stageWhen it is set
PlannedAt container creation — the intended quantity
LoadedAt loading — the actual weight measured
DeliveredAt delivery — the weight at destination

The difference between loaded and delivered quantities drives credit/debit note generation.


Booking Status

Each container tracks its logistics booking progression independently:

StatusMeaning
BOOKING_REQUESTEDA freight booking has been requested for this container
PC_BOOKEDPre-carriage (inland transport) has been confirmed
FREIGHT_BOOKEDMaritime freight booking has been confirmed
ALL_BOOKEDBoth pre-carriage and freight are confirmed

A container can only be loaded once it has at least a confirmed freight booking.


Container Invoicing

Every container generates invoicing lines — granular cost and revenue entries that feed into invoices. This is the container invoicing matrix.

Invoicing line types

TypeDescription
BUYCost of purchasing the material from the supplier
SELLRevenue from selling to the customer
PROVIDERThird-party costs (freight, pre-carriage, inspection, customs)

Cost elements tracked per container

CategoryElements
LogisticsFreight cost, Cargo bulk cost, Pre-carriage cost, Logistic cost, Transport
AgentsAgent commission, Buy agent, Sell agent
QualityInspector, Sterile, Declassification
FinanceInterest, Principal, Advance payment
AdjustmentsCredit note, Debit note, Logistic bill-back
PenaltiesPenalty, Transport empty, Transport quality refused/unvalued
DiscountsGlobal discount, Element discount
OtherUnexpected costs

Line status progression

StatusWhen
PLANNEDAt planning stage
LOADEDWhen the container is loaded
DELIVEREDWhen the container is delivered
CLOSEDWhen invoicing is finalized

Each line also tracks its invoicing status: PENDING (not yet on an invoice) or INVOICED (included in a finalized invoice).


Container Margin

Jules calculates margin at the container level:

Margin (per tonne) = Sale price/T − Purchase price/T − Logistics cost/T

Two margin values are maintained:

Margin typeData sourceWhen available
Estimated marginContractual prices + estimated logistics costsFrom allocation
Final marginActual invoiced amountsAfter invoicing close

The margin is also expressed as a total (margin/T × net weight) for each container.

See Margin Calculations for the full calculation methodology.


Hedging Allocation

Containers can be individually linked to hedging contracts via the ContainerQualityHedging entity. This tracks which portion of a commodity exchange hedge covers which physical container.

FieldDescription
Hedging contractThe financial hedge covering this container
Hedged quantityHow many tonnes of this container are hedged
QualityThe material grade being hedged

See Hedging & Risk Management for details on hedging contracts.


Tracking & Location

When a container is part of a shipment, it inherits the shipment's real-time tracking data:

Location status

StatusMeaning
AT_ORIGINContainer is at the loading port
LOADEDOn board the vessel
IN_TRANSITVessel is sailing
TRANSSHIPMENTContainer is being transferred between vessels
REACHED_PODArrived at the port of destination
COMPLETEDDelivery complete

Timing status

StatusMeaning
ON_TIMEShipment is on schedule
DELAYEDShipment is behind schedule
EARLY_ARRIVALShipment arrived ahead of schedule

Key tracking fields

FieldDescription
Current ETALatest estimated time of arrival
Original ETAInitial ETA at time of sailing
Days to ETACountdown to arrival
Actual sailing dateWhen the vessel departed
Actual arrival at PODWhen the vessel arrived

See Logistics & Freight for shipment tracking details.


Container Follow-Up Grouping

Container follow-ups can be grouped by multiple dimensions for dashboard and reporting views:

Grouping dimensionUse case
Carrier / Shipping lineTrack volume per carrier
ForwarderMonitor forwarder performance
Loading dateDaily/weekly loading schedule
Delivery dateArrival planning
Customer siteVolume per destination
Supplier siteVolume per origin
StatusPipeline overview
ShipmentContainers on the same vessel/BL
MaterialVolume by quality grade

Month-to-date KPIs

Jules provides real-time container KPIs:

KPIDescription
PlannedContainers with a loading date this month
To-planContainers allocated but not yet planned
TotalAll containers for the period
Loaded todayContainers loaded on the current day

Invoicing Close

Each container has independent invoicing close controls:

FlagDescription
isPurchaseInvoicingClosedPurchase invoicing is finalized — no more buy-side changes
isSaleInvoicingClosedSale invoicing is finalized — no more sell-side changes
isPurchaseInvoicingReopenedPurchase invoicing was reopened after closing
isSaleInvoicingReopenedSale invoicing was reopened after closing

This allows fine-grained control: a container's purchase invoicing can be closed while its sale invoicing remains open (e.g., waiting for final delivery weight).


Relationships with Other Modules

ModuleRelationship
OperationParent entity — every container belongs to an operation
Operation QualityQuantity mapping per material grade (planned/loaded/delivered)
AllocationLinks buy-side containers to sell-side operations
BookingFreight booking that reserves space for the container
ShipmentGroups containers traveling under the same BL
InvoicingContainer generates per-line cost/revenue entries
MarginProfit calculated per container from invoicing data
HedgingFinancial hedge coverage per container
Pre-CarriageInland transport from supplier to port

Key Business Rules

1. One operation, multiple containers

An operation can have any number of containers. A 500 T purchase with 40' HC containers (roughly 25 T each) will have approximately 20 containers.

2. Weight reconciliation

The weight at loading (net weight) and at delivery (weight slip) often differ due to moisture loss, scale differences, or handling losses. This difference drives credit/debit note adjustments.

3. Container numbering

Every container receives a unique Harold number from the system. The external reference number (the physical container ID like CLHU1234567) is tracked separately and is not required at creation.

4. Estimated logistics costs

At creation, each container carries estimated freight, pre-carriage, and logistic costs derived from the booking's freight rate. These estimates are replaced by actual invoiced amounts as bills are recorded.

5. VGM requirement

Before a container can sail, the Verified Gross Mass (VGM) must be submitted to the carrier. This is a SOLAS regulation requirement tracked at the container level.

6. Container-level ERP sync

Each container's invoicing lines maintain their own ERP synchronization status, independent of the parent invoice's sync status.

7. Multi-quality containers

A single container can carry multiple material grades (e.g., 20 T of HMS 1&2 + 5 T of Shredded). Each quality is tracked independently through the container-to-quality mapping.


Glossary

TermDefinition
BL (Bill of Lading)Transport document identifying the container and its contents
Container invoicing lineA single cost or revenue entry at the container level
Container invoicing matrixThe full set of invoicing lines across all containers in an operation
Follow-up statusThe container's lifecycle stage (Unplanned → Planned → Loaded → Delivered → Closed)
Gated-inWhen the container enters the port terminal area
Harold numberUnique identifier automatically assigned to each container
Invoicing closeThe act of finalizing all invoicing for a container (purchase and/or sale side)
Net weightWeight of the commodity only (excluding container tare)
Tare weightWeight of the empty container
VGMVerified Gross Mass — mandatory weight declaration submitted to the carrier
Weight slipWeight recorded at the destination, typically from the customer's scale