ST Retail Operations & Installment ERP
A centralized ERP platform for a regional retail chain, digitizing 10,000+ installment accounts and automating accounts receivable and inventory sync.

The problem
ST is a regional retail chain specializing in motorcycles and electronics, operating on a business model built around in-house installment plans. Their entire operational infrastructure ran on a fragmented combination of physical paper books, handwritten ledger cards, and disconnected Excel spreadsheets. As the business scaled across multiple branches, critical blind spots emerged in stock control, processing slowed at checkout, and outstanding installment accounts piled up uncollected, directly impacting monthly cash flow.
The business & technical challenges
The 'Excel Trap' allowed overdue accounts to slip unnoticed as balances were manually calculated per customer file. Paper ledgers created constant inventory discrepancies across storefronts, causing costly overstocking or unexpected stockouts. Beyond the operational layer, the technical challenges were equally demanding: legacy customer balances and partial payment histories were trapped in inconsistent Excel rows and handwritten formats requiring a resilient data extraction and transformation strategy. Installment workflows demand absolute computational precision across multi-year calculations, grace periods, and custom business rules, requiring strict ACID compliance. The system also had to instantly synchronize inventory, cash registers, and payment statuses across all regional branches to prevent double-allocating physical stock.
Our solution
We engineered a centralized, enterprise-grade Operations & Installment ERP platform using an end-to-end TypeScript stack. The Next.js frontend delivers a highly responsive web portal for on-the-floor sales reps and internal operations managers, with a clean dashboard that simplifies complex billing schedules and visualizes inventory tracking down to individual product serial numbers. The NestJS backend exposes a modular REST API that decouples heavy database routines, such as updating aging accounts or running daily automated stock audits, from core user workflows. PostgreSQL was chosen as the database backbone to guarantee complete transactional integrity across all complex operational logs.
Phased delivery
The platform was rolled out in five disciplined phases to minimize disruption to live retail operations. Phase 1 audited and normalized the client's disparate Excel sheets and historical records, building a custom migration script to clean, validate, and parse credit entries into relational databases without interrupting ongoing sales. Phase 2 built the secure PostgreSQL schema and core NestJS modules for automated payment plan calculations, aging account tracking, and strict payment enforcement. Phase 3 designed the frontend screens for inventory inputs, point-of-sale registers, and real-time customer lookup profiles. Phase 4 engineered a custom collection pipeline that automatically segments accounts by risk profile and overdue status, giving internal agents immediate visibility into late payments. Phase 5 delivered hands-on on-site training for administrative staff and store clerks, running parallel validation tests alongside their traditional paper logs to visibly prove system accuracy and drive full team adoption.
Key lessons
An end-to-end TypeScript stack let our team share data models and type definitions across the Next.js frontend and NestJS backend, dramatically minimizing integration errors and cutting development timelines. Building the software proved only half the battle. Allocating strategic hours to data cleansing, schema verification, and interactive staff training transformed user skepticism into high adoption rates. Targeting the client's single biggest pain point, accounts receivable and payment recovery, first allowed the business to recapture lost revenue almost immediately, making the software pay for itself within months of going live.