Generate a Freight Invoice
The Generate a Freight Invoice action enables automated creation of freight invoices based on bills of lading linked to a selected voyage.
The action is available from the toolbar and operates independently of the active directory, including both Bills of Lading and Freight Invoices folders.

Process Overview
The freight invoice generation process is organized as a multi-step interface:
Voyage selection and preliminary invoice generation.
Invoice validation and selection for creation.
Optional email submission configuration.
Invoice generation and distribution.
Step-by-Step Interface
Step 1: Freight Invoice Generation Setup
Clicking opens a configuration window containing voyage parameters, invoice lists, and actions for resolving missing client or payer data.

Window Header
Voyage: Defines the voyage used for freight invoice generation.
Load F. Invoices: Generates preliminary freight invoices and populates the lists below based on available bills of lading.
List Sections
Freight Invoices to Generate: Invoices prepared for further processing and creation (proceed by clicking ).
Existing Freight Invoices: Previously created freight invoices related to the selected voyage.
Bills of Lading Without Client / Payer: Bills missing client and/or payer information.
Action Buttons
Cargo Settings — Opens configuration for BAF calculation, cargo handling, and client or payer assignment (also available from the toolbar).
Find Payer — Attempts to identify missing client and payer information for bills of lading in the third list.
The system applies Client Detect rules in the following order:
Exact match by Cargo + Shipper + Consignee + Notify.
If found, both Payer and Client are assigned to the bill of lading.
Fallback matching (evaluated sequentially):
Cargo + Shipper, with ‘Consignee’ and ‘Notify’ left empty;
Cargo + Consignee, with ‘Shipper’ and ‘Notify’ left empty;
Cargo + Notify, with ‘Shipper’ and ‘Consignee’ left empty.
If a Payer is found but no Client, the client is taken from the payer’s contact card in the Accounting Module.
When at least one bill is updated, freight invoices for those bills are regenerated automatically.
Grouping Bills of Lading
All bills of lading related to the selected voyage are grouped by:
Payer
Client
Port of Discharge
Week
Invoice Creation
One freight invoice is generated for each group.
The following fields are populated automatically:
Payer, Client, Voyage, Week;
Bills of Lading (included list);
Invoice Date — Current date;
Currency — USD (fixed);
Own POL, Own POD, Own Cargo.
‘Due Date’ calculated as follows:
If a voyage is assigned:
— Transitions withPort = PODare evaluated.
— The latest ETA is selected (fallback: latest ETA overall).—
Credit Program Daysfrom the payer’s contact settings are then added.If no voyage is assigned:
—Due Date= Invoice Date + 21 days.
Pallet Handling
BLs with cargo type Pallets are grouped into a single invoice regardless of week.
Grouping by Payer, Client, and POD remains applicable.
The earliest week is used.
Additional Data from Contact Settings
Show BLs— Taken from the client’s contact card.Show As Agent Only,Show Ship Owner— From the ‘Issued By’ field.Client BAF,BAF Delta,BAF Type,Rates Currency— From client settings.
Fuel Data
Fuel Date Rate— First day of the selected week;Fuel Price— Average fuel price (weekly or monthly), retrieved from MABUX.
Amount Calculation by Cargo Type
Cargo Type
Amount Formula
Boxes (bulk), Boxes (40), Boxes (pallets), Boxes (mini), Boxes (208), M2, Colli, M3, Lumpsum
Sum of Packages Count
Pallets, Pallets (mini)
Sum of Pallet Count
Containers
Count of Unique Containers
If the client has port-based additional rates in their contact settings:
Extra packaging types are added with the Port flag;
POL and POD are taken from the bill of lading;
Amounts are calculated accordingly.
Rate Assignment
Default rates are applied from client rate settings.
Rates marked with Port are taken from additional rate configurations matching POL and POD.
Rate & BAF Calculation
If
Client BAF = 0→Rate & BAF = 0.For Tons and M2 →
Rate & BAF = Rate.For other types:
Rate & BAF = Rate + (Fuel BAF × BAF Coef), where:BAF Coef— BAF coefficient from client settings;Fuel BAF = Fuel Price – (Client BAF ± BAF Delta)
(operation depends on BAF Delta direction).
BAF Calculation
BAF = Amount × (Rate & BAF – Rate).If
Client BAF = 0, BAF is set to zero.
Total Calculation
Total = Amount × Rate & BAF.
Total in Rates Currency
Total Rates Currency = Sum of all Totals – Commission Amount from Misc Charges.
Step 2: Invoice Selection and Validation

The interface displays the following sections:
Freight Invoices to Create
Invoices ready for creation;
Selection is performed via checkboxes;
Double-click opens an invoice for editing.
Incomplete Invoices
Invoices blocked due to validation errors, including:
Missing Issued By data;
Missing Bank Account;
Cargo items with rate type set to None.
After correction, invoices automatically move to the creation list.
Preview Panel
Displays detailed information for the selected invoice.
Step 3: Invoice Finalization and Email Selection
This step determines whether invoices will be distributed via email.

Interface Behavior
No invoices selected for email:
is replaced with .
Invoices are generated without email distribution.
Invoices selected for email:
remains available to proceed.
Step 4: Email Distribution Configuration
This step is available only if email distribution is selected.

Distribution Options
Do not group — One email per invoice. The recipient address will be automatically taken from the payer's contact card.
Group by payer — One email per payer. The email will be addressed to the payer's contact address.
Group by client — One email per client. The email will use the client's contact address.
All in one — One email with all invoices attached; recipient address must be specified manually.
Finalization
Clicking :
Generates all freight invoices;
Creates corresponding email messages;
Prepares emails according to the selected distribution method.