The SSCC Generator app provides a reliable and GS1-compliant way to generate Serial Shipping Container Codes (SSCC) directly within the Frappe Framework or ERPNext.
The SSCC Generator App (sscc_generator) is a custom Frappe application designed to generate and manage Serial Shipping Container Codes (SSCC-18) for multiple companies within the ERP system.
SSCCs uniquely identify logistic units (such as cartons, pallets, or containers) and are compliant with the GS1 SSCC-18 standard.
Each generated SSCC-18 code is stored in the system and incremented automatically for future generations.
Its structure is defined by the GS1 standard and consists of the following parts:
| Component | Description | Example | Length |
|---|---|---|---|
| Application Identifier (AI) | Identifies that this data element is an SSCC. Always "00". |
00 | 2 |
| Extension Digit | Used to extend serial capacity. Assigned by the company generating the SSCC (0–9). | 0 | 1 |
| GS1 Company Prefix | Unique number assigned by GS1 to the company. | 0012345 | 7 |
| Serial Reference | Unique number within the company prefix to identify a logistic unit. | 000000024 | 9 |
| Check Digit | Calculated using the Modulo 10 algorithm. | 9 | 1 |
| Total Digits (excluding AI) | — | — | 18 |
The complete format looks like:
(00) 0 0012345 000000024 9
Or, concatenated as a 20-character string (including AI):
00000123450000000249
sscc_generator/
├── sscc_generator/
│ ├── sscc_generator/
│ │ ├── doctype/
│ │ │ ├── sscc_settings/
│ │ │ │ ├── sscc_settings.py ← Core Logic
│ │ │ │ ├── sscc_settings.json ← Doctype Meta
│ │ │ │ ├── sscc_settings.js ← Client Script (optional)
│ │ │ │ └── __init__.py
│ │ ├── __init__.py
│ ├── hooks.py
│ ├── __init__.py
└── MANIFEST.in
The SSCC Generator app can be installed on any existing Frappe / ERPNext site.
Before installing, ensure you have:
- Frappe Framework v14+ or v15+
- ERPNext (optional, but supported)
- Bench installed and working
- Access to the server terminal
Check versions:
bench versionFrom your bench directory, run:
bench get-app sscc_generator https://github.com/UnifyXperts/ERPNext-SSCC-Generator.gitbench --site your-site-name install-app sscc_generatorExample:
bench --site site1.local install-app sscc_generatorbench migrateThis will:
- Create the SSCC Settings doctype
- Register permissions
- Sync app metadata
bench restart(Required for production or supervisor setups.)
- Login to ERPNext
- Go to SSCC Settings
- Create a new record for each company
- Company Name
- GS1 Company Prefix (7–10 digits)
- Application Identifier (default:
00)
Save the record.
{
"name": "Company A",
"company_name": "Company A",
"application_identifier": "00",
"gs1_company_prefix": "0012345",
"last_generated_sscc": "00000123450000000249",
"doctype": "SSCC Settings"
}From Bench Console:
bench consoledoc = frappe.get_doc("SSCC Settings", "Company A")
doc.generate_next_sscc()Output:
00000123450000000478
✔ 18-digit SSCC ✔ GS1 compliant ✔ Ready for barcode generation
-
GS1: What is an SSCC?
MIT