Skip to content
Case studies

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.

Muhammad Ahmad

Founder, Havenir Solutions


SnapshotDetail
IndustryElectrical manufacturing: cables, switches and lights
CountryPakistan: Lahore, and an outlet and a site in Islamabad
UsersAbout 30 ERPNext users, payroll for about 150 staff
ModulesAccounting, buying, selling, stock, manufacturing, HR and payroll
CustomSales commission on collections, dealer price and discount prints
TimelineIslamabad 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

  1. 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.
  2. Buying and imports: local purchases for cable materials, and long-term purchase orders for imported switch and light parts.
  3. 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.
  4. 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.
  5. Invoice approval: accounts approve invoices or send them to the director, who can approve, reject or ask for changes.
  6. 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.
  7. 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.
  8. HR and payroll: employees and salaries for both cities, with hourly pay for staff paid by timesheet and waivers for absent days.
  9. 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

  1. Cables, switches and lights produced, bought and sold from the same records.
  2. Every dealer's price and discount visible on the invoice, and every invoice checked against the price list.
  3. Commission worked out from each payment as it is received.

Muhammad Ahmad

Founder, Havenir Solutions

Founder of Havenir Solutions, a certified ERPNext partner. A certified ERPNext consultant and Frappe framework developer who runs every project himself.

Facing the same?

You’ll speak with Muhammad Ahmad, the founder. Replies within 1 business day.

Muhammad Ahmad, founder of Havenir Solutions