Cargo Management

ERPNext Cargo Management is a fully-fledged ERPNext solution designed for freight forwarding companies.

Install Cargo Management

bench get-app https://github.com/AgileShift/cargo_management

Tags

  • erpnext
  • frappe
  • nodejs

Add the Frappe Gems badge to your README

Maintain Cargo Management? Paste this into your README:

[![Listed on Frappe Gems](https://frappegems.com/api/method/frappe_gems.seo.badge?app=AgileShift%2Fcargo_management)](https://frappegems.com/gems/apps/AgileShift/cargo_management)

About Cargo Management

ERPNext Cargo Management


ERPNext Cargo Management is a fully-fledged ERPNext solution designed for freight forwarding companies.

Streamlines logistics processes, including package tracking, invoicing, and warehouse management, providing a seamless, efficient, and user-friendly experience.

Built on Frappe Framework v16 and ERPNext, this solution is designed to meet the unique needs of businesses in the freight forwarding industry.
It leverages core functionalities from ERPNext, such as Accounting, Stock, HR, Assets, Payroll and more.

Key Features

  • Parcel Management: Manages the packages, integrates tracking APIs and handles notifications.
  • Warehouse Management: Handles the receipt of packages in warehouses.
  • Shipment Management: Manages shipments and receipts, also generates packing lists for each shipment.
  • Selling Management: Customizes ERPNext modules for invoicing packages and managing customer import orders.
  • Support Management: Customizes ERPNext modules for customer support related to packages and orders.
  • Custom Views:
    • Workspaces, Dashboard Views, Settings
    • Reports: Provides insightful reports for better decision-making and business analysis.
  • External APIs For Tracking Packages:

Extra Addons

List of Carriers Currently Supported:

Last checked: 25 December 2025

Carrier EasyPost 17Track
Amazon ❌️ ✅️
USPS ✅️ ✅️
UPS ✅️ ✅️
DHL ✅️ ✅️
FedEx ❗️With Account ✅️
OnTrac ❗️With Account ✅️
SF Express ❗️With Account ✅️
Yanwen ⁉️ Limited ✅️
Cainiao ❌️ Deprecated ✅️
YunExpress ❌️ Deprecated ✅️
SunYou ❌️ ✅️
Veho ❗️With Account ❌️
GOFO Express Pending

Configuration of API Keys and Webhooks for EasyPost and 17Track

EasyPost Configuration

  1. Get Your EasyPost API Key
  2. Set the API Key: $ bench set-config easypost_api_key API_KEY
  3. Create and set your Webhook Secret(hmac): $ bench set-config easypost_webhook_secret SECRET
  4. Set up your Webhook Secret and the Webhook URL on EasyPost: {HOST}/api/method/cargo_management.parcel_management.doctype.parcel.api.easypost_api.easypost_webhook

17Track Configuration

  1. Get Your 17Track Security Key
  2. Set the API Key: $ bench set-config 17track_api_key API_KEY
  3. Set up the Webhook URL on 17Track: {HOST}/api/method/cargo_management.parcel_management.doctype.parcel.api.17track_api.17track_webhook

TODO: WORKING

TODO: WORK HEAVILY ON THE TRANSLATIONS bench generate-pot-file --app cargomanagement bench update-po-files --app cargomanagement --locale es

Parcel Flow

  1. Parcels are created and can be related to a specific customer
    1. Content of the package can be added and its related Item for invoice Purposes.
    2. It can be tracked by the API or not.
  2. As the carrier updates the details the Tracking API send it via a webhook, we gather and update.
  3. When the package is marked as delivered at warehouse by the carrier we stop the Tracking API webhook updates
  4. A Warehouse Receipt doc its created to link the received package:
    1. Package related fields can be filled by the Warehouse: Content, Dimensions, Weight, Receipt Date
  5. Cargo Shipment is created to export Packages in bulk:
    1. Warehouse Receipts are added in them.
    2. Related information: Transportation Type, Departure date, Est Arrival Date, Dimensions, Gross Weight

WORKING on this flow

  1. Cargo Shipment Receipt is created to receive the Cargo Shipment:
    1. A Receipt loads the data of all related Packages in the Cargo Shipment through the Warehouse Receipts
    2. All Packages are sorted by Customer, and its the moment to set all related data to Create Invoices.
    3. When all the Packages have been processed, the Sales Invoices can be created.
      1. A Sales invoice will be created for the customer, it will contain all the related Packages.
  2. WORKING

Customizations to Frappe and ERPNext:

WORK ON PROGRESS

  • Selling:
    • Quotation
    • Sales Invoice are used to invoice for Logistic services and items related to Business
    • Sales Order are the only choice to make purchases online on behalf of the customer:
      • WORKING(We must link the sales order with the package and content, later we must invoice the order and service.)
  • Package can be linked in Issue:
    • WORKING(on the change of status)
  • The customizations allow us to:
    • Invoice a Customer for the Logistic Services and Products in Stock offered.
    • Link the Sales Invoice with a Package and update its statuses.

Helpers

  • Cargo Packing List: is a "Packing List" for the Cargo Shipment:
    1. Gets all the content declared by the Customer and the content declared by the Warehouse of the packages in a Cargo Shipment
    2. It allows to modify the content and amount declared only for Print.
    3. WORKING

This is work in progress. But it's stable for usage

  • WORKING
    1. Packing Slip for customs:
    2. Fetching data of prices and quotations from packages to Cargo Shipment Receipt: WORKING
  • FUTURE:
    1. Setting data of prices in CSR to Sales Invoice
    2. Working in the Sales Orders!
  1. Migrate SQL to QueryBuilder? using Pypika?

Contributing

This app uses pre-commit for code formatting and linting. Please install pre-commit and enable it for this repository:

cd apps/cargo_management_v16
pre-commit install

Pre-commit is configured to use the following tools for checking and formatting your code:

  • ruff
  • eslint
  • prettier
  • pyupgrade

License

agpl-3.0

Related Other apps for Frappe & ERPNext

  • Erpnext — Free and Open Source Enterprise Resource Planning (ERP)
  • Helpdesk — Modern, Streamlined, Free and Open Source Customer Service Software
  • Print Designer — Visual print designer for Frappe / ERPNext
  • Ctr — CTR模型代码和学习笔记总结
  • Whitelabel — Whitelabel ERPNext
  • Fossunited — fossunited.org
  • Helm — Helm Chart Repository for Frappe/ERPNext
  • Frappe Attachments S3 — A frappe app to upload file attachments in doctypes to s3.