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 expect | What actually happens |
|---|---|
| A link to customs | There 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 tracking | There is no automatic tracking of shipments or containers from shipping lines, and no GPS. You record the stage and arrival dates yourself. |
| Automatic customs duty | Duty 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 app | There is no customer portal for tracking a shipment, and no mobile app specific to this module. |
| Warehousing | There is no public warehousing for hire (3PL). The company’s own stock is managed by the regular Inventory module. |
| WhatsApp or SMS | The 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:
| Account | What 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' advances | Issuing an advance debits this account and credits the cash box. The advance statement and advance balances reports match it in the ledger. |
| Logistics operations cost | The 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 nature | What it is | Billed to the customer? | Effect |
|---|---|---|---|
| Fee (revenue) | What the company sells, such as clearance fees. | Yes | Counts in profit. |
| Reimbursable expense | Paid on the customer’s behalf: customs duty, storage charges, shipping line charges. | Yes, and recovered by billing it | Neither revenue nor expense. It passes through the clearing account: debited on payment, credited on billing. |
| Company cost | Borne by the company, such as transport you contracted at a fixed price. | No | Lowers the job’s profit. |
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.
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
| Field | Description |
|---|---|
| Operation | Import, export or transit. |
| Transport mode | Sea, air or land. |
| Customer | Who 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 date | You record them yourself, as there is no link to government customs systems. |
| Vessel, Flight or Truck, and Carrier | The first follows the transport mode; the carrier is who carries the shipment. |
| Origin port and destination port | From the Ports & border points register. |
| Expected arrival and Actual arrival | Two dates you record yourself. |
| Goods description, Packages, Gross weight (kg), Volume (m³) | The shipment’s details. |
| Customer reference | The customer’s own reference for the operation. |
| Free storage until | A deadline shown on the Storage and container deadlines screen and included in the reminder. |
The seven tabs
| Tab | What it holds |
|---|---|
| Containers | The shipment’s containers, with their seals and free-time deadlines. |
| Customs declaration lines | The lines of the customs declaration and their duties. |
| Transport orders | Transport by company truck or contracted carrier. |
| Job expenses | The expenses on the job, from their three sources. |
| Supplier invoices | The purchase invoices on this job. |
| Job invoices | The customer’s sales invoices issued from this job. |
| Stage history | Every stage change, with its date, agent and note. |
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:
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.
The Containers tab
Path: Job file → Containers tab — /logistics/jobs/:id/edit
What it does: One line for each container in the shipment.
| Field | Description |
|---|---|
| Container no. and Type | Identifies the container. You can also search the list of jobs by its number. |
| Seal no. | The container’s seal. |
| Gross weight (kg) and Packages | What the container holds. |
| Container free until | This container’s deadline, shown on the Storage and container deadlines screen. |
| Returned on | Record 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.
| Field | Description |
|---|---|
| HS code | The goods’ code on the declaration. |
| Description and Country of origin | What the line is and where it comes from. |
| Packages and Gross weight (kg) | The line’s quantity. |
| Customs value | The line’s value. |
| Duty % | You enter it on the line. |
| Duty amount | The system works it out from the rate. |
| Import VAT | The line’s VAT. |
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 from | When to choose it |
|---|---|
| Cash box or bank | The company paid directly from its cash box or bank. |
| Agent advance | The agent paid from their advance. See Agent advances. |
| Supplier invoice | The 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. |
- 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.
- If it is in a foreign currency, enter the currency and exchange rate. The expense is booked in the base currency.
- Click Post: posting generates the journal entry.
- To correct it, use Unpost: unposting reverses the entry.
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:
- Issue advance: the entry debits agents’ advances and credits the cash box.
- Expenses from the advance: what the agent pays is recorded as an expense on its job, with the source Agent advance.
- Return advance: the agent returns what is left.
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.
- 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.
- 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.
- 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 truck | Contracted carrier | |
|---|---|---|
| What you enter | A vehicle and a driver. | A carrier (a supplier) and an agreed amount. |
| What follows | The Create trip button creates a trip in the Fleet module. | The Carrier invoice button, on the order itself. |
| Effect and follow-up | The 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. |
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.
- From inside the job, click Bill job.
- Select the reimbursable expenses you want to bill, and the fee items. The system suggests the fee price from the tariff.
- Click Create invoice: the system creates a draft regular sales invoice, shown on the Job invoices tab.
- The invoice continues like any sales invoice: approvals, e-invoicing, credit limit and the customer statement.
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:
| Item | Item nature | Amount | On the customer’s invoice? |
|---|---|---|---|
| Customs duty, paid from the agent’s advance | Reimbursable expense | 5,000 | Yes |
| Storage charges, paid from the bank | Reimbursable expense | 1,200 | Yes |
| Transport by carrier | Company cost | 900 | No |
| Clearance fees | Fee (revenue) | 1,500 | Yes |
| 15% VAT on the fees | VAT | 225 | Yes |
The result
| Figure | Calculation | Result |
|---|---|---|
| Customer’s invoice | 5,000 + 1,200 + 1,500 + 225 | 7,925 |
| Revenue | The fees only | 1,500 |
| Job profit | 1,500 − 900 | 600 |
| Clearing account | Debit 6,200 on payment, credit 6,200 on billing | Zero |
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.
| Deadline | Where it lives |
|---|---|
| Free storage until | On the job. |
| Container free until | On 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.
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.
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.
| Report | What it shows |
|---|---|
| Jobs Register | The list of job files. |
| Job Profitability | Each job’s profit: billed fees + company-trip freight − costs. |
| Profitability by Customer | Profit grouped by customer. |
| Job Expenses Detail | The expenses on jobs, in detail. |
| Unbilled Reimbursable Expenses (Aging) | What has not been billed yet, and its age. |
| Expense Items Analysis | The analysis by item. |
| Clearing Agent Statement | An agent’s advance movements. It matches the advances account in the ledger. |
| Clearing Agents Balances | The advance balances. They match the advances account in the ledger. |
| Transport Orders & Carrier Reconciliation | Compares the agreed amount with the invoiced amount. |
| Customs Duties by Declaration | The customs duties on the declarations. |
| Storage & Container Deadlines | Storage and container deadlines, including those more than 30 days overdue. |
| Clearance Cycle Time | How 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.
| Setting | Description |
|---|---|
| Remind before deadline (days) | How many days before a deadline the reminder starts. Zero turns it off. |
| Exclude reimbursable expenses from tax reports | Off by default. When on, zero-VAT reimbursable expense lines are left out of the three tax reports. A line that carries actual VAT stays. |
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.