Logistics and Customs Clearance

For customs clearance companies, freight forwarders, and transport and logistics companies: one job file that holds the containers, declaration lines, stages, expenses, transport orders and invoices, keeps what you pay on the customer’s behalf out of your revenue, and shows each job’s profit from its posted documents.

Who this module is for, and its limits

What it does: It serves customs clearance companies, freight forwarders, and transport and logistics companies, for every type of operation, using company trucks and contracted carriers side by side. It works with the Accounting and commercial modules (sales and purchase invoices), and the Fleet module complements it for company truck trips.

This chapter follows the order of the work: first-time setup, then the daily cycle on the job file, then follow-up and reports.

What the module does not do

What you might expectWhat actually happens
A link to customsThere is no electronic link to any government customs system (not Fasah, not ASYCUDA, not Nafeza, and no other national system). You record the declaration number, date and lines on the job yourself.
Shipment trackingThere is no automatic tracking of shipments or containers from shipping lines, and no GPS. You record the stage and arrival dates yourself.
Automatic customs dutyDuty is not calculated from any country’s tariff. You enter the duty rate on the line, and the system works out the amount from it.
Customer portal and mobile appThere is no customer portal for tracking a shipment, and no mobile app specific to this module.
WarehousingThere is no public warehousing for hire (3PL). The company’s own stock is managed by the regular Inventory module.
WhatsApp or SMSThe module sends no WhatsApp or SMS notifications. The reminder is a notification to the user inside the system.

First-time setup: the module’s accounts

Path: Settings → Accounts

What it does: Start here, before the first expense on any job. The company’s accountant sets three accounts:

AccountWhat passes through it
Reimbursable expenses (clearing)What is paid on the customer’s behalf: debited on payment and credited on billing. Its balance per job is what has been paid and not yet recovered.
Agents' advancesIssuing an advance debits this account and credits the cash box. The advance statement and advance balances reports match it in the ledger.
Logistics operations costThe operating costs the company bears. It is the default for the Expense account on Company cost items; see Service & expense items.

Ports & border points

Path: Logistics & Clearance → Ports & border points — /logistics/ports

What it does: The register of seaports, airports and land border points you work with. You pick the Origin port and Destination port from it on the job file.

Each one has a Code, an Arabic name, an English name, a Transport mode and a Country.

Service & expense items: the three kinds

Path: Logistics & Clearance → Service & expense items — /logistics/charge-types

What it does: Everything you sell or pay on a job has an item here, and the Item nature decides its accounting effect. This is the heart of the module, so set it up before any transaction.

Each item has a Code, an Arabic name, an English name and an Item nature. Fee and reimbursable items also have a VAT % field, and company cost items have an optional Expense account field: if you leave it empty, the Logistics operations cost account from Settings is used. The system automatically creates a service item for each one.

Item natureWhat it isBilled to the customer?Effect
Fee (revenue)What the company sells, such as clearance fees.YesCounts in profit.
Reimbursable expensePaid on the customer’s behalf: customs duty, storage charges, shipping line charges.Yes, and recovered by billing itNeither revenue nor expense. It passes through the clearing account: debited on payment, credited on billing.
Company costBorne by the company, such as transport you contracted at a fixed price.NoLowers the job’s profit.
⚠️ Watch out: Setting up a reimbursable expense as a fee puts it into revenue and distorts profit, tax and the reports. See the figures in the worked example.

Clearing agents

Path: Logistics & Clearance → Clearing agents — /logistics/agents

What it does: The register of clearing agents and the follow-up of their advances. Record every agent who works with you here, so you can pick them when issuing an advance and when changing a job’s stage. The advance movements themselves are under Agent advances.

Fee tariffs

Path: Logistics & Clearance → Fee tariffs — /logistics/tariffs

What it does: The price of a fee item for a specific customer, operation type or transport type. The system suggests the price automatically at billing, and if more than one tariff applies, the most specific wins.

ℹ️ These are your own fee prices, not a customs tariff. The module holds no customs tariff for any country.

Job files

Path: Logistics & Clearance → Job files — /logistics/jobs

What it does: The list of jobs, where your day starts. Search by job, bill of lading, declaration, container or customer, and use the filters to narrow the list.

The job file

Path: Logistics & Clearance → Job files → Job file — /logistics/jobs/new and /logistics/jobs/:id/edit

What it does: One document per operation. Everything that belongs to it is recorded on it: containers, declaration lines, transport orders, expenses and invoices.

Job file data

FieldDescription
OperationImport, export or transit.
Transport modeSea, air or land.
CustomerWho the operation is for.
Bill of lading no., Air waybill no. or Consignment note no.Follows the transport mode, and is searchable from the list of jobs.
Customs declaration no. and Declaration dateYou record them yourself, as there is no link to government customs systems.
Vessel, Flight or Truck, and CarrierThe first follows the transport mode; the carrier is who carries the shipment.
Origin port and destination portFrom the Ports & border points register.
Expected arrival and Actual arrivalTwo dates you record yourself.
Goods description, Packages, Gross weight (kg), Volume (m³)The shipment’s details.
Customer referenceThe customer’s own reference for the operation.
Free storage untilA deadline shown on the Storage and container deadlines screen and included in the reminder.

The seven tabs

TabWhat it holds
ContainersThe shipment’s containers, with their seals and free-time deadlines.
Customs declaration linesThe lines of the customs declaration and their duties.
Transport ordersTransport by company truck or contracted carrier.
Job expensesThe expenses on the job, from their three sources.
Supplier invoicesThe purchase invoices on this job.
Job invoicesThe customer’s sales invoices issued from this job.
Stage historyEvery stage change, with its date, agent and note.
ℹ️ A tab appears only for users who hold its permission.
ℹ️ The footer of every document holds its log and attachments.

Stages and stage history

Path: Job file → Stage history tab — /logistics/jobs/:id/edit

What it does: Shows how far the operation has come. A job passes through seven stages:

Open → Preparing documents → In transit → Arrived → In clearance → Cleared → Delivered

To change the stage, use the Update stage button on the job. Every change is recorded with its date, the agent and a note in the Stage history.

⚠️ No automatic tracking: The module does not follow shipments or containers from shipping lines and does not use GPS. The stage changes only when you record it.

The Containers tab

Path: Job file → Containers tab — /logistics/jobs/:id/edit

What it does: One line for each container in the shipment.

FieldDescription
Container no. and TypeIdentifies the container. You can also search the list of jobs by its number.
Seal no.The container’s seal.
Gross weight (kg) and PackagesWhat the container holds.
Container free untilThis container’s deadline, shown on the Storage and container deadlines screen.
Returned onRecord it when the container is returned, and its deadline stops.

Customs declaration lines

Path: Job file → Customs declaration lines tab — /logistics/jobs/:id/edit

What it does: Records the customs declaration on the job, line by line.

FieldDescription
HS codeThe goods’ code on the declaration.
Description and Country of originWhat the line is and where it comes from.
Packages and Gross weight (kg)The line’s quantity.
Customs valueThe line’s value.
Duty %You enter it on the line.
Duty amountThe system works it out from the rate.
Import VATThe line’s VAT.
⚠️ No customs link: The module has no electronic link to any government customs system. It neither sends nor receives the declaration, and it does not fetch the duty rate from any country’s tariff.
ℹ️ The customs duty you actually pay is recorded as a reimbursable expense under Job expenses.

Job expenses and their three sources

Path: Logistics & Clearance → Job expenses — /logistics/disbursements

What it does: Every amount spent on an operation is recorded as an expense on its job and posted with a journal entry. A job’s expenses also appear on the Job expenses tab inside it.

Paid fromWhen to choose it
Cash box or bankThe company paid directly from its cash box or bank.
Agent advanceThe agent paid from their advance. See Agent advances.
Supplier invoiceThe amount is on an invoice from a shipping line, carrier or yard. Do not enter it by hand: its rows are derived from the invoice when it is posted. See Supplier invoice on job.
  1. From this screen, or with the New expense button inside the job, record the expense on its job, choose its item from Service & expense items, then Paid from.
  2. If it is in a foreign currency, enter the currency and exchange rate. The expense is booked in the base currency.
  3. Click Post: posting generates the journal entry.
  4. To correct it, use Unpost: unposting reverses the entry.
ℹ️ A Reimbursable expense item debits the clearing account and does not count as an expense. A Company cost item lowers the job’s profit.

Agent advances

Path: Logistics & Clearance → Agent advances — /logistics/advances

What it does: Controls the money the company hands to an agent to spend on jobs. An advance runs through three steps:

  1. Issue advance: the entry debits agents’ advances and credits the cash box.
  2. Expenses from the advance: what the agent pays is recorded as an expense on its job, with the source Agent advance.
  3. Return advance: the agent returns what is left.
ℹ️ The Clearing Agent Statement and Clearing Agents Balances reports match the advances account in the ledger. See the reports.

Supplier invoice on job

Path: Job file → Supplier invoices tab — /logistics/jobs/:id/edit

What it does: When an expense comes as a supplier’s invoice (shipping line, carrier, yard), create it from inside the job. It is a regular purchase invoice: it goes through approvals and enters the supplier’s balance and the payment voucher.

  1. On the tab, click Supplier invoice on job, give each line its item, then Create invoice. Each line is directed to its item’s account.
  2. When it is posted, the job’s expense rows are derived from it, and they prevent a double entry. So do not enter these amounts again as an expense from a cash box or advance.
  3. Unposting it deletes those rows.

Transport orders

Path: Logistics & Clearance → Transport orders — /logistics/transport

What it does: A transport order on a job, with a status: Planned In transit Delivered Cancelled. There are two kinds:

Own truckContracted carrier
What you enterA vehicle and a driver.A carrier (a supplier) and an agreed amount.
What followsThe Create trip button creates a trip in the Fleet module.The Carrier invoice button, on the order itself.
Effect and follow-upThe trip’s freight is revenue, and its expenses are a cost on the job.The Transport Orders & Carrier Reconciliation report compares the agreed amount with the invoiced amount.
ℹ️ You record the order’s status yourself: there is no automatic tracking and no GPS.

Billing the customer

Path: Job file → Bill job button — /logistics/jobs/:id/edit

What it does: Turns what is on the job into a sales invoice for the customer.

  1. From inside the job, click Bill job.
  2. Select the reimbursable expenses you want to bill, and the fee items. The system suggests the fee price from the tariff.
  3. Click Create invoice: the system creates a draft regular sales invoice, shown on the Job invoices tab.
  4. The invoice continues like any sales invoice: approvals, e-invoicing, credit limit and the customer statement.
ℹ️ A reimbursable expense line is credited to the clearing account, not to revenue.
ℹ️ An expense is never billed twice. A credit note returns the amount to the clearing account, so it can be billed again.
⚠️ A reimbursable item can be billed only from inside the job.

Closing and reopening a job

Path: Job file → Close job — /logistics/jobs/:id/edit

What it does: Ends the operation once it is complete. The system refuses to close the job while it still has any of the following:

  • An unbilled expense.
  • A clearing balance that has not been recovered.
  • A draft document.

Deal with what remains, then try again. A closed job is read-only.

Reopen job

A closed job shows the Reopen job button to users who hold the same permission as closing, in a branch they are allowed to use. The job returns to open immediately, and users with edit permission can change it again.

  • The system asks for no confirmation and no reason, and there are no other conditions for reopening.
  • The job’s stage and documents do not change, and no line is added to the Stage history.
  • When you close it again, the same closing conditions apply.

A full worked example

What it does: One operation that shows where every amount goes. An import job carries:

ItemItem natureAmountOn the customer’s invoice?
Customs duty, paid from the agent’s advanceReimbursable expense5,000Yes
Storage charges, paid from the bankReimbursable expense1,200Yes
Transport by carrierCompany cost900No
Clearance feesFee (revenue)1,500Yes
15% VAT on the feesVAT225Yes

The result

FigureCalculationResult
Customer’s invoice5,000 + 1,200 + 1,500 + 2257,925
RevenueThe fees only1,500
Job profit1,500 − 900600
Clearing accountDebit 6,200 on payment, credit 6,200 on billingZero
⚠️ The common mistake: Recording the 6,200 as revenue makes revenue 7,700 instead of 1,500. The profit margin then looks like 7.8% instead of 40%, and the tax and all the reports are distorted.

Storage and container deadlines, and reminders

Path: Logistics & Clearance → Storage and container deadlines — /logistics/deadlines

What it does: Follows the free-time deadlines for storage and containers. The screen shows what is overdue and what is coming up.

DeadlineWhere it lives
Free storage untilOn the job.
Container free untilOn each container, and it stops once the container’s return is recorded.

The daily reminder

  • A daily reminder inside the system, a number of days before the deadline that the company sets in Module settings. Zero turns it off.
  • It reaches users who have permission to view jobs.
  • It does not repeat for a deadline more than 30 days overdue, but that deadline stays on the screen and in the report.
⚠️ The reminder is a notification inside the system only. The module sends no WhatsApp or SMS.

Job profitability

Path: Logistics & Clearance → Job profitability — /logistics/profitability

What it does: The profitability of your jobs. Its figures are derived from posted documents and are never typed in, so anything not posted is not counted.

Job profit = billed fees + company-trip freight − costs

Reimbursable expenses are not in the formula, because they are neither revenue nor expense. What has been paid and not yet recovered shows as a balance in the clearing account.

The module dashboard

Path: Logistics & Clearance — /dashboard/logistics

What it does: A quick picture of the work, showing:

  • Open jobs and Jobs in period.
  • Fees and Profit.
  • Unbilled expenses.
  • Overdue deadlines and Deadlines within 7 days.
  • Jobs by month and Open jobs by stage (a pie chart).
  • Latest jobs.

The twelve reports

Path: Logistics & Clearance → Reports — /logistics/reports

What it does: Opens the Report Center on the Logistics & Clearance category. Document numbers in the reports are links that open the document.

ReportWhat it shows
Jobs RegisterThe list of job files.
Job ProfitabilityEach job’s profit: billed fees + company-trip freight − costs.
Profitability by CustomerProfit grouped by customer.
Job Expenses DetailThe expenses on jobs, in detail.
Unbilled Reimbursable Expenses (Aging)What has not been billed yet, and its age.
Expense Items AnalysisThe analysis by item.
Clearing Agent StatementAn agent’s advance movements. It matches the advances account in the ledger.
Clearing Agents BalancesThe advance balances. They match the advances account in the ledger.
Transport Orders & Carrier ReconciliationCompares the agreed amount with the invoiced amount.
Customs Duties by DeclarationThe customs duties on the declarations.
Storage & Container DeadlinesStorage and container deadlines, including those more than 30 days overdue.
Clearance Cycle TimeHow long the clearance cycle takes.

Module settings

Path: Settings → Logistics & Clearance tab — /settings?tab=logistics

What it does: Two settings specific to the module. Its accounts are under Settings → Accounts.

SettingDescription
Remind before deadline (days)How many days before a deadline the reminder starts. Zero turns it off.
Exclude reimbursable expenses from tax reportsOff by default. When on, zero-VAT reimbursable expense lines are left out of the three tax reports. A line that carries actual VAT stays.
⚠️ The VAT option: It is an option rather than a fixed rule, because the treatment differs from country to country. The decision belongs to the company’s accountant.

Permissions and access

What it does: Detailed permissions for every screen and action: view, create, edit, delete, post, unpost, close, bill. A ready-made role template comes with them. For roles in general, see Administration.

  • Tabs: a tab on the job file appears only for users who hold its permission.
  • Branches: the module works by branch.
  • Languages: the interface and names are in Arabic, English and Indonesian.
  • Subscription: the module is a subscription switch. When it is off, its menus, its settings tab and its reports do not appear.