Published
ERPNext for Cable and Switch Manufacturing: TJ Switches
TJ Switches makes cables in Pakistan and assembles switches and lights from imported parts, then sells them through dealers across the country. Production, purchasing, dealer sales, collections and payroll for its Lahore and Islamabad sites now run in one ERPNext.

Founder, Havenir Solutions
| Snapshot | Detail |
|---|---|
| Industry | Electrical manufacturing: cables, switches and lights |
| Country | Pakistan: Lahore, and an outlet and a site in Islamabad |
| Users | About 30 ERPNext users, payroll for about 150 staff |
| Modules | Accounting, buying, selling, stock, manufacturing, HR and payroll |
| Custom | Sales commission on collections, dealer price and discount prints |
| Timeline | Islamabad live in October 2025, Lahore in March 2026, from an August 2025 start |
The business
TJ Switches has sold electrical products in Pakistan since 1992. It makes its own cables, from house wiring to power cables, and assembles switches, sockets and lights from parts it imports. Dealers, builders and walk-in customers buy from its Lahore site and its Islamabad outlet.
What had to work in one system
TJ Switches ran on a local accounting tool and Excel sheets. Each product line runs differently. Cable materials are bought locally, while switch and light parts are imported on long-term orders with more than a month of lead time. Dealers buy on credit at their own discounts, and each salesperson's commission depends on the cash they bring in, per product line.
What we built
- Manufacturing: bills of materials for cables, switches and lights, with work orders that can be completed in parts when a job runs over several days, and disassembly when a finished product is taken apart.
- Buying and imports: local purchases for cable materials, and long-term purchase orders for imported switch and light parts.
- Dealer sales: each dealer's discounts set as pricing rules, with credit limits checked on the sales order. Invoices print the list price, the discount and the net amount, so dealers see exactly what they were given.
- Pricing discipline: an invoice can't be submitted without a list price on every line, and one invoice holds one product line. Invoices are rounded to the nearest 10 rupees.
- Invoice approval: accounts approve invoices or send them to the director, who can approve, reject or ask for changes.
- Commission on collections (custom): each customer has a default split of salespeople per product line. Every payment received is divided across them, and each person's commission is calculated on the spot.
- Counter and delivery: counter sales at the Islamabad outlet take stock straight from its own store. Delivery challans and invoices carry the transporter, driver, vehicle and transport receipt.
- HR and payroll: employees and salaries for both cities, with hourly pay for staff paid by timesheet and waivers for absent days.
- Cash view for the owner: a dashboard and reports on cash, payments received and expense claims.
Everything except the commission split and the print formats is standard ERPNext, configured for how TJ Switches works. See how an ERPNext implementation runs.
Rollout
Islamabad went live first, in October 2025, with sales and stock. Lahore followed in March 2026 after two months of user acceptance testing, and manufacturing was set up on site with a week of hands-on training for the production team.
Data migration
Customers with their territories, suppliers, items by brand and series, warehouses, bank accounts and employees with their salaries came across before each branch went live.
Result
- Cables, switches and lights produced, bought and sold from the same records.
- Every dealer's price and discount visible on the invoice, and every invoice checked against the price list.
- Commission worked out from each payment as it is received.
