ModulesAllocations
Modules

Allocations in Jules

How Jules matches purchase and sale operations through allocations — the link that connects buy-side containers to sell-side customers.

Allocations in Jules

Product documentation — Allocations are the bridge between buying and selling. They connect a purchase operation to a sale operation at the container level, enabling margin calculation, logistics coordination, and fulfilment tracking.


Table of Contents

  1. Overview
  2. Creating an Allocation
  3. Allocation Lifecycle
  4. Fulfilment Steps
  5. Documents Generated from Allocations
  6. Tracking
  7. Warehouse Allocations
  8. Batch Operations
  9. Relationships with Other Modules
  10. Key Business Rules
  11. Glossary

Overview

An allocation links a purchase operation (buy side) to a sale operation (sell side) at the container and quality level. It answers the fundamental question: which purchased material is going to which customer?

Once an allocation exists:

  • Jules can calculate an estimated margin across the buy/sell pair
  • Containers move from Planned to Allocated in the follow-up tracker
  • Logistics coordination (bookings, shipments) can begin
  • Documents (Annex 7, load reports) can be generated

Creating an Allocation

What you need

FieldDescriptionRequired
Buy operationThe purchase operationYes
Buy operation qualityWhich material line on the buy sideYes
Sell operationThe sale operationYes
Sell operation qualityWhich material line on the sell sideYes
ContainersWhich containers to includeYes
MQCMinimum quality commitment per containerOptional
Reference numberExternal reference for this allocationOptional
CommentNotes about this allocationOptional
StatusDRAFT or CONFIRMEDYes

Blacklist validation

Before confirming an allocation, Jules checks whether the buy site (supplier location) is blacklisted by the sell site (customer location). If the customer has configured that site as blacklisted, Jules will warn or block the allocation.

See Companies, Sites & Contacts for details on site blacklists and whitelists.

Batch creation

Multiple allocations can be created at once using the batch creation action (createManyAllocations). This is common when allocating many containers from a single purchase to a single sale at once — one allocation record per container is created.


Allocation Lifecycle

StatusMeaning
DRAFTAllocation is provisional — containers are linked but not committed
CONFIRMEDAllocation is finalized — logistics and invoicing can proceed

Watchers

Allocations support watchers — users who receive notifications about changes to the allocation. Watchers are added at creation or later via update.


Fulfilment Steps

Each allocation tracks a fulfilment checklist — a set of logistics and documentation steps that must be completed before the cargo can ship.

Annex 7 (Environmental Compliance)

StatusMeaning
PENDINGNot yet started
PREPARED_IN_ERPDocument prepared in the ERP system
SENT_TO_COMPLIANCESent to the compliance department
SENT_TO_SUPPLIERSent to the supplier for signature
SIGNED_AND_UPLOADEDSigned document uploaded to Jules

Booking

StatusMeaning
PENDINGNo booking yet
PREPARED_IN_ERPBooking prepared in the ERP
PRECARRIAGE_BOOKING_OKPre-carriage transport confirmed
FREIGHT_BOOKING_OKMaritime freight confirmed
ALL_BOOKING_OKBoth pre-carriage and freight confirmed

Customs

StatusMeaning
PENDINGCustoms clearance not started
SENT_TO_AGENTDocuments sent to customs agent
SENT_TO_CARRIERCustoms clearance sent to carrier

Load Report

StatusMeaning
PENDINGNot yet prepared
PREPAREDLoad report document ready
SENT_TO_DOCS_TEAMSent to the documentation team

VGM & Load Details

StepTracking
VGMBoolean — submitted or not
Load DetailsCount — number of detail records provided

Documents Generated from Allocations

Allocations can generate several critical trade documents:

DocumentDescriptionMutation
Annex 7Environmental compliance document for cross-border waste shipmentgenerateAnnex7
Custom InvoiceCommercial invoice for customs clearancegenerateCustomInvoice
Load ReportDetailed loading report with container weights and contentsgenerateLoadReport
Recovery NoteDocument confirming material recovery at destinationgenerateRecoveryNote

Each generated document is stored as a PDF linked to the allocation.

Photos

Allocations can store two types of photos:

  • Annex 7 photos — photos of the signed environmental document
  • General photos — photos of the cargo, loading process, or containers

Tracking

Allocations support tracking at two levels:

Allocation-level tracking status

StatusMeaning
LOADEDMaterial has been loaded
GATED_INContainer has entered the port terminal
SHIPPEDContainer is on the vessel
ARRIVEDVessel has arrived at destination
GATED_OUTContainer has left the destination port
RETURNEDEmpty container returned to carrier
RECOVERY_NOTE_SENTRecovery note sent to authorities
RECOVEREDMaterial officially recovered at destination

Searates integration

Jules integrates with Searates for real-time container tracking. Tracking data includes:

  • Geographic coordinates (latitude/longitude)
  • Location names and country codes
  • Events with timestamps
  • Vessel and voyage information

Warehouse Allocations

For warehouse operations (local market), allocations can link to stockpiles instead of a standard sell operation:

FieldDescription
StockpileThe stockpile where material will be stored
WarehouseThe warehouse site
Warehouse qualityThe quality grade in the stockpile

This enables material to flow from a purchase operation into warehouse stock, and later be sold from the stockpile.


Batch Operations

OperationDescription
Create manyCreate multiple allocations at once (one per container)
Update by IDsUpdate multiple allocations with the same data (e.g., tracking status)
Update BL by IDsAssign the same BL number to multiple allocations
Update BL by reference numbersAssign BL numbers by matching on reference numbers

Relationships with Other Modules

ModuleRelationship
Buy OperationSource of the material — the purchase side
Sell OperationDestination of the material — the sale side
ContainersPhysical units linked to this allocation
BookingsFreight bookings for the allocated containers
ShipmentsShipments grouping the allocated containers
TasksAction items tracked per allocation
MarginEstimated margin calculated from the buy/sell pair
Customs AgencyCustoms agent handling clearance for this allocation
ERPAllocations can be synchronized to external ERP systems

Key Business Rules

1. One allocation per buy/sell quality pair

An allocation connects one buy operation quality to one sell operation quality. If a purchase operation has multiple qualities, each quality needs its own allocation(s).

2. Container-level granularity

Each container in an allocation is individually tracked through the fulfilment steps. A single allocation can have some containers fully shipped while others are still being loaded.

3. Harold numbering

Every allocation receives a unique Harold number from the system, used as the primary reference across logistics and documentation workflows.

4. BL number propagation

When a BL number is assigned to an allocation (via booking or shipment), it can be propagated to all containers in the allocation.

5. Margin per tonne

Each allocation carries an estimated margin per tonne (marginPerTon) and its currency unit, calculated from the spread between buy and sell prices minus logistics costs.

6. Stepper configuration

Allocations use a configurable stepper system (via stepperConfigs and stepperValues) that defines the workflow steps visible in the UI. Different organizations can customize which steps appear and in what order.

7. ERP synchronization

Allocations can be synchronized to external ERP systems via synchronizeAllocationToErp, pushing allocation data to third-party logistics or accounting systems.


Glossary

TermDefinition
AllocationThe link connecting a purchase operation quality to a sale operation quality at the container level
Annex 7Environmental compliance document required for cross-border shipment of recyclable materials (EU Basel regulation)
BL numberBill of Lading number — the key transport document identifier
Fulfilment stepsThe checklist of logistics and documentation steps per allocation
Load reportDocument detailing the contents and weights of loaded containers
Recovery noteDocument confirming material has been recovered at the destination facility
Reference numberExternal reference used to identify the allocation in communications
Tracking statusThe physical progress of the allocation (Loaded → Shipped → Arrived → Recovered)
VGMVerified Gross Mass — mandatory weight declaration for containers
WatcherA user subscribed to notifications about changes to the allocation