Erpnext Sscc Generator
GS1-compliant SSCC-18 generator for ERPNext and the Frappe Framework, supporting multi-company sequential SSCC generation.
- Author: UnifyXperts
- Repository: https://github.com/UnifyXperts/ERPNext-SSCC-Generator
- GitHub stars: 0
- Forks: 0
- License: MIT
- Category: Developer Tools
- Maintenance: Minimally Maintained
Install Erpnext Sscc Generator
bench get-app https://github.com/UnifyXperts/ERPNext-SSCC-Generator
Tags
- barcode
- erpnext
- frappe
- gs1
- logistics
- shipping-label
- sscc
Add the Frappe Gems badge to your README
Maintain Erpnext Sscc Generator? Paste this into your README:
[](https://frappegems.com/gems/apps/UnifyXperts/ERPNext-SSCC-Generator)
About Erpnext Sscc Generator
ERPNext SSCC Generator
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.
Overview
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.
Core Concept: SSCC-18 Structure
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
Frappe App Structure
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
Installation Guide
The SSCC Generator app can be installed on any existing Frappe / ERPNext site.
Prerequisites
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 version
Step 1: Get the App
From your bench directory, run:
bench get-app sscc_generator https://github.com/UnifyXperts/ERPNext-SSCC-Generator.git
Step 2: Install the App on Your Site
bench --site your-site-name install-app sscc_generator
Example:
bench --site site1.local install-app sscc_generator
Step 3: Apply Migrations
bench migrate
This will:
- Create the SSCC Settings doctype
- Register permissions
- Sync app metadata
Step 4: Restart Bench
bench restart
(Required for production or supervisor setups.)
Step 5: Configure SSCC Settings
- Login to ERPNext
- Go to SSCC Settings
- Create a new record for each company
Required Fields:
- Company Name
- GS1 Company Prefix (7–10 digits)
- Application Identifier (default:
00)
Save the record.
Example Record
{
"name": "Company A",
"company_name": "Company A",
"application_identifier": "00",
"gs1_company_prefix": "0012345",
"last_generated_sscc": "00000123450000000249",
"doctype": "SSCC Settings"
}
Step 6: Generate Your First SSCC
From Bench Console:
bench console
doc = frappe.get_doc("SSCC Settings", "Company A")
doc.generate_next_sscc()
Output:
00000123450000000478
✔ 18-digit SSCC ✔ GS1 compliant ✔ Ready for barcode generation
References
GS1: What is an SSCC?
License
MIT
Related Developer Tools apps for Frappe & ERPNext
- Frappe — Low code web framework for real world applications, in Python and Javascript
- Frappe Docker — Docker environment for developing, deploying, and running Frappe applications (ERPNext and custom apps) in production and development
- Builder — Craft beautiful websites effortlessly with an intuitive visual builder and publish them instantly
- Bench — CLI to manage Multi-tenant deployments for Frappe apps
- Frappe Ui — A set of components and utilities for rapid UI development
- Press — Full service cloud hosting for the Frappe stack - powers Frappe Cloud
- Gameplan — Open Source Discussions Platform for Remote Teams
- Doppio — A Frappe app (CLI) to magically setup single page applications and Vue/React powered desk pages on your custom Frappe apps.