ModulesInvoicing & Billing
Modules

Invoicing & Billing in Jules

How Jules manages the full invoicing cycle — from proforma to final invoice, credit notes, payments, and reconciliation.

Invoicing & Billing in Jules

Product documentation — How Jules manages invoices, credit/debit notes, payments, and the container invoicing matrix.


Table of Contents

  1. Overview
  2. Invoice Types
  3. Invoice Lifecycle
  4. Container Invoicing Matrix
  5. Payments & Reconciliation
  6. Validation & Approval
  7. Credit Notes & Debit Notes
  8. PDF Generation
  9. ERP Synchronization
  10. Key Business Rules
  11. Glossary

Overview

Invoicing in Jules connects the commercial world (operations, containers) to the financial world (accounting, payments). Every traded container generates invoicing lines that are aggregated into invoices.

Jules handles invoicing at two levels:

  1. Container invoicing — granular cost/revenue lines per container
  2. Invoices — aggregated financial documents sent to counterparties or received from providers

Invoice Types

By Object Type

Object TypeDescription
INVOICEStandard commercial invoice (purchase or sale)
CREDIT_NOTEAdjustment reducing an existing invoice amount
DEBIT_NOTEAdjustment increasing costs or charges
PROVIDER_REPORTInvoice from a third-party service provider
PURCHASE_REPORTReport-style document for purchase accounting

By Direction

DirectionDescription
BUYPurchase invoice — received from a supplier
SELLSale invoice — sent to a customer

Proforma vs Final

TypeDescription
ProformaPreliminary invoice issued before delivery; used for advance payments or letter of credit
FinalDefinitive invoice based on actual delivered quantities and prices

Invoice Lifecycle

Status Definitions

StatusMeaning
DRAFTInvoice is being prepared, not yet finalized
OPENInvoice is finalized and awaiting payment
CLOSEDInvoice is fully settled
CANCELLEDInvoice was voided

Computed Filter Statuses

For filtering and reporting, Jules provides additional computed statuses:

Filter StatusMeaning
PROFORMAInvoice flagged as proforma
MATCHEDInvoice amounts match container invoicing lines
UNMATCHEDDiscrepancy between invoice and container invoicing
PAIDPayment received (partial or full)
PAID_PROFORMAProforma with payment received

Container Invoicing Matrix

The container invoicing matrix is the core of Jules' invoicing system. It breaks down every cost and revenue element at the container level.

How it works

Each container generates invoicing lines — one for each cost or revenue element:

Invoicing Line Types

TypeCodeDescription
PurchaseBUYLines related to supplier payments
SaleSELLLines related to customer billing
ProviderPROVIDERLines for third-party service costs

Cost Elements

Jules tracks a comprehensive set of invoicing elements:

CategoryElements
LogisticsFreight cost, Cargo bulk cost, Pre-carriage cost, Logistic cost, Transport
AgentsAgent commission (general), 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

Follow-up Status per Line

Each invoicing line tracks when in the container's lifecycle it was incurred:

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

Invoicing Line Status

StatusMeaning
PENDINGLine exists but not yet included in an invoice
INVOICEDLine has been included in a finalized invoice

Payments & Reconciliation

Payment Recording

Payments are recorded against invoices with the following data:

FieldDescription
AmountPayment amount (currency + value)
InvoiceThe invoice being paid
ContainerOptional — specific container the payment applies to
Payment InfoLink to payment information record
NoteOptional link to a credit/debit note used for payment

Reconciliation Fields on Invoices

FieldDescription
Gross priceTotal before adjustments
Net priceAmount after discounts
Already paidSum of payments received
Advance to payAdvance payment amount
Amount to payRemaining balance
Total paymentAggregate of all payment records
Applied noteAmount applied from credit/debit notes
Past order creditCredits carried from previous orders
Is PaidWhether the invoice is fully settled

Advance Payment Types

TypeDescription
PERCENTAGEAdvance calculated as a percentage of the invoice
FIXEDFixed advance amount

Validation & Approval

Invoices support a validation workflow similar to operations:

Multiple invoices can be validated in batch using the updateInvoicesValidationStatus action.


Credit Notes & Debit Notes

Credit Notes

A credit note reduces the amount owed on an existing invoice. It is created by referencing a parent invoice and specifying the adjustment.

Debit Notes

A debit note adds charges. Debit notes are sub-classified:

Debit Note TypeDescription
PROVIDER_REPORTAdditional charges from a provider
PURCHASE_REPORTAdditional purchase-related charges
INVOICEStandard debit note

Both credit and debit notes reference their parent invoice(s) via parentInvoiceIds.


PDF Generation

Invoices can be generated as PDFs using configurable templates:

  • Template selection — Each invoice can use a specific pdfTemplate
  • Required documents — Configurable list of supporting documents
  • Custom terms — Free-form terms included in the PDF
  • Display options — Currency and volume unit for display purposes

The PDF includes:

  • Invoice header (number, date, parties, billing entity)
  • Container details and invoicing lines
  • Totals (gross, discounts, net, advance, balance)
  • Bank account information
  • Shipping details (ETD, ETA, incoterm)

ERP Synchronization

Invoices support bidirectional ERP sync:

FieldDescription
erpIdExternal ERP identifier
syncStatusPENDING → IN_PROGRESS → SUCCESS / FAILURE
dateOfLastSyncTimestamp of the last synchronization
syncErrorMessageError details if sync failed

Container invoicing lines also track their own ERP sync status independently.


Key Business Rules

1. Invoice numbering

Every invoice receives a unique Harold number automatically generated by the system. Users can also set a reference number for their own tracking.

2. Posting period

Invoices have a posting period — the accounting period the invoice belongs to, which may differ from the creation date.

3. Multi-container invoices

A single invoice can cover multiple containers from the same operation. The container invoicing lines are aggregated into the invoice total.

4. Exchange rate handling

When the invoice currency differs from container currencies, an exchange rate is stored on the invoice for conversion.

5. Included total amount incoterms

Invoices can flag which incoterm cost components (FOB, CFR, CIF) are included in the total amount — this affects how the PDF displays the price breakdown.

6. Invoicing close per container

Each container has independent flags for closing purchase and sale invoicing:

  • isPurchaseInvoicingClosed / isSaleInvoicingClosed
  • isPurchaseInvoicingReopened / isSaleInvoicingReopened

This allows fine-grained control over which containers still accept invoicing changes.


Glossary

TermDefinition
Container invoicingThe granular cost/revenue breakdown per container per cost element
Credit noteA document reducing the amount owed on an existing invoice
Debit noteA document adding charges to an existing invoice
Gross priceTotal invoice amount before adjustments
Harold numberUnique identifier automatically assigned to each invoice
Invoicing lineA single cost or revenue element on a container (e.g., freight cost)
Net priceInvoice amount after discounts and adjustments
Posting periodThe accounting period an invoice belongs to
ProformaPreliminary invoice issued before final delivery
Provider reportAn invoice received from a third-party provider
ReconciliationThe process of matching payments to invoice amounts