WhatsAppCall MeLinkedInGitHub
Nov 8, 2026•9 min read•Technology

Container Terminal and Shipping Line Management Software: Gate In/Out, Yard, Tariffs and Invoicing Explained

Author

Marwan Ayman

Full-Stack Developer & Automation Engineer

Container Terminal and Shipping Line Management Software: Gate In/Out, Yard, Tariffs and Invoicing Explained

Short answer: container terminal management software records every container that enters or leaves a yard, tracks where it sits, links it to a booking and an agent, and turns storage days and services into invoices. A small or mid-size depot rarely needs a full enterprise terminal operating system (TOS); a focused custom system covering gate, yard, tariffs and billing is usually cheaper to own and easier to adapt. I built one, ShipYard Pro, and this post explains how the pieces fit.

The reference build is ShipYard Pro, a multi-tenant dashboard for container yards and shipping lines in English and Arabic. It took five weeks and replaced an older ASP.NET-style interface. Below I cover the modules, the data model decisions, and how to decide between custom and enterprise software.

What does container terminal and shipping line management software do?

Short answer: it follows a container from booking to gate in, yard placement, gate out and invoice, and keeps an audit trail at every step.

Many depots still run this in spreadsheets plus a separate accounting tool. That works until two people edit the same sheet, a container is billed for the wrong number of days, or nobody can say which block a box was moved to last Tuesday. The software replaces those gaps with linked records:

  • Master data: agents, customers, vessels, ports, container types, commodities, contractors and equipment.
  • Operations: bookings, allocations, gate transactions, yard moves, blocking and unblocking.
  • Money: storage tariffs, service tariffs, invoices, credit notes.
  • Control: roles, permissions, audit logs, and EDI message tracking.

The hard part is not any single screen. A single container touches a booking, an agent, a gate transaction, a yard cell, a tariff and finally an invoice. If those links are loose, billing disputes follow.

How do gate in and gate out workflows work for agents and customers?

Short answer: gate in registers the container (number, size and type) against a booking or agent; gate out releases it and closes the storage clock. Agents and customers usually need separate flows.

Shipping line agents move many containers under a booking, so their gate transactions are tied to allocations. Direct customers are different: they often bring or collect a single box and deal with the yard themselves. ShipYard Pro keeps both as distinct flows, agent gate in/out and customer gate in/out, because the validation rules differ. An agent transaction checks the booking and remaining allocation. A customer transaction does not depend on an agent allocation.

A good gate screen does three things: it prevents duplicate container numbers inside the yard, it captures size and type at entry (20 or 40 foot, dry, reefer and so on), and it timestamps both directions so storage days are never guessed later. In the ShipYard Pro gate screens, every transaction lists container size and type up front, since that drives the yard slot and the rate.

How are bookings, allocations and yard blocks modeled?

Short answer: a booking holds quantities by container size; allocations split that capacity per agent; yard blocks hold the physical positions where containers sit.

I model these as separate tables rather than one big container record:

ConceptWhat it storesWhy it is separate
BookingVessel, port, commodity, quantity of 20 ft and 40 ft unitsDefines what is expected, independent of what arrives
AllocationShare of a booking given to an agentLets one booking serve several agents with limits
Gate transactionContainer in or out, time, partyThe factual event, never edited silently
Yard block and cellPhysical position and capacityUtilization is computed from it
MoveContainer shifted between blocksBuilds the container history timeline

Separating expected quantities (booking) from actual events (gate transactions) is what makes reports honest. A planner can see, for example, a booking for 40 units with 31 gated in, and the yard view shows block utilization so they know where the next box can go. Blocking and unblocking a container are tracked actions that appear in its history rather than deleted rows. The container history timeline then reads like a diary of the box: gate in, move to a block, blocked, unblocked, gate out.

How do storage tariffs, free days and service charges turn into invoices?

Short answer: the system counts days between gate in and gate out, subtracts the free days from the tariff assigned to that agent or customer, applies the storage rate to the remaining days, adds any service charges, and produces an invoice that can be approved or credited.

This is where most spreadsheets fail, because the rules hide in people's heads. In ShipYard Pro, storage tariffs carry free days and are assigned to agents; service tariffs cover extras such as handling or inspection. Charges are calculated from free days and rates when an invoice is submitted, so the result is reproducible. Invoices are submitted and then approved, and corrections go through credit notes and an invoice audit view rather than editing a posted invoice.

Worth designing early:

  1. One source for the day count. Derive it from gate timestamps only.
  2. Tariff per party. Different agents negotiate different free days.
  3. Immutable posted invoices. Fix mistakes with credit notes, so finance can trace them.
  4. Currency and tax in the invoice record, not recomputed later from settings that may change.

This build calculates charges from free days and rates. If your tariffs step up after a threshold of days, confirm that in scoping; it is a normal extension.

What roles and permissions does a yard system need?

Short answer: permissions per module and per action: view, add, edit and delete, assigned to user groups, and enforced on both pages and API routes.

A gate clerk should record movements but not edit tariffs. A finance user should approve invoices but not delete gate records. The legacy system I replaced had a different rule on almost every screen, which made it hard to reason about. In ShipYard Pro I used user groups with four flags (view, add, edit, delete) per module and form, managed in a roles screen, and checked them in both the UI and the API. Hiding a button is not security; the API route must refuse the call. An audit log records who changed what.

If several operators share one deployment, add tenancy on top: everything is scoped to an organization and a branch, so company A never sees company B's containers. That is what multi-tenant means in practice, and it needs to be in the data model from day one, not patched in later.

How I built ShipYard Pro

Short answer: Next.js 16 for the dashboard, PostgreSQL with Prisma for a 45-model domain, Zod-validated API routes, NextAuth for sign-in and next-intl for English and Arabic.

The main challenge was keeping more than 40 linked models from turning into a tangle while still showing a fast, simple interface. A few choices that mattered:

  • Prisma schema as the contract. Organizations, branches, containers, bookings, allocations, gate transactions, moves, tariffs, invoices, credit notes and EDI messages live in one typed schema.
  • One dashboard section per module in the App Router, with API routes validated by Zod so bad input never reaches the database.
  • One reusable data table (TanStack Table) with filters, column toggles and export, used across more than 50 pages. Consistency here saved a lot of build time.
  • Bilingual from the start. English and Arabic with right-to-left layout through next-intl. Mirroring tables, forms and charts is easier when RTL is a first-class concern than when it is added late.
  • Dashboard and yard views. Gate activity, invoices and yard utilization charts (Recharts) and a per-block yard view.

The repo also ships a seed with demo roles and documentation for permissions, tariffs and testing. I have not measured usage figures, so I will not quote any. What I can say is that the delivered system covers the whole flow from booking to invoice in one place. See the full ShipYard Pro case study for screenshots of the dashboard, gate in, invoices, storage tariffs and roles.

Custom system or enterprise TOS: which fits a small or mid-size depot?

Short answer: choose enterprise TOS for large multi-terminal operations with crane integration, automated gates and complex planning. Choose a lightweight custom system when your core need is gate records, yard visibility, tariffs and invoices, and you want the workflow to match how your team already works.

FactorSpreadsheetsEnterprise TOSCustom lightweight system
Setup timeHoursLonger rolloutWeeks
Fit to your tariffsManualConfigurable, within vendor limitsBuilt around your rules
Audit trailWeakStrongStrong if designed in
Arabic and RTLWhatever you typeVaries by vendorNative if specified
LicensingNoneUsually recurringBuild cost, then hosting
Crane and equipment automationNoYesOnly if you add it
Multi-company hostingNoSometimesMulti-tenant by design

A custom system also lets a logistics company that serves several depots or agents host them in one deployment. If that sounds like your case, a SaaS-style build fits, which is the work I do under SaaS MVP development. For internal operations tools in general, see custom business systems, and for the dashboard stack itself, Next.js development.

How much does it cost and how long does it take to build?

Short answer: a focused first version (gate, yard, one tariff type, invoices, roles) can fit the MVP scope, which I sell at $2,499 in 21 days; a wider system like ShipYard Pro, with 50 plus pages and 45 data models, took five weeks and is priced after scoping.

Cost is driven by the number of modules, how many tariff rules you have, whether you need data migration from spreadsheets or an old system, EDI exchange, and bilingual support. Fixed packages are on the packages page, and the app cost calculator gives a quick range for a larger build. A practical approach is to launch gate, yard and invoicing first, then add EDI, equipment and advanced reporting once staff use the core daily.

What I need from you for a quote: a list of container flows you handle, a sample tariff sheet, one real invoice, the roles on your team, and whether Arabic screens are needed.

Running a yard or shipping line and tired of spreadsheets? Send me your current process and a sample tariff and I will tell you what a custom system would cover, how long it would take and what it would cost.

Tags

Logistics SoftwareContainer TerminalCustom SoftwareNext.jsMulti-tenant