Client Background
In 2005 RiAcube was a small but ambitious software studio. Mahesh Bundela, owner of SangaMeshwar Footwears Retail Pvt. Ltd., ran a well-known local footwear brand in Haryana. His business offered competitively priced shoes across a handful of towns and he wanted to scale by appointing distributors in multiple cities. SangaMeshwar’s sales relied on trustworthy local outlets, simple billing, and fast movement of stock. But managing inventory, pricing, and tax displays across several independent distributor locations had become unwieldy as the business planned to expand from five distributors to many more.
As founder and Sr. Consultant at RiAcube, I — Sharat Bharadwaj — took this project personally. They needed a practical, resilient, and easy-to-use software system that could manage billing and inventory at multiple locations, reconcile tax-inclusive MRP with itemized reporting, and produce a wide range of operational reports for both central management and distributed staff.
The Challenge
SangaMeshwar’s core challenge combined operational scale with regulatory and accounting precision:
- Multi-location independence: Each distributor/store needed its own billing and inventory, yet central management required consolidated visibility.
- Tax-inclusive MRP: The MRP printed on footwear boxes included all taxes. Bills and internal reports, however, needed to display tax components and net prices separately using reverse tax calculations.
- Reporting complexity: The business required many reports — stock movement, aging, distributor-wise sales, margins, returns, and tax summaries — all accurate and timely.
- Limited resources: As a small development effort, RiAcube had to design, code, deploy, and train staff with minimal overhead and no online training options.
- Reliability & maintainability: The solution needed to run on available hosting and be maintainable with PHP 5.6 and MySQL, and integrate with client workflows.
Why Existing Methods Were Failing
The wholesaler’s existing processes relied heavily on manual ledger entries, inconsistent spreadsheets, and basic cash-register receipts. These approaches failed for several reasons:
- Error-prone calculations: Manual tax and reverse tax calculations led to discrepancies between MRP, net prices, and tax reports.
- Lack of central control: Without a centralized view, stock transfers, overstocks, and stockouts could not be managed proactively.
- Slow reporting: Generating consolidated reports required manual aggregation across distributors and stores.
- Limited audit trail: Tracking sales, returns, and distributor behavior was difficult, making fraud or misuse hard to detect.
- Scalability limits: Processes that worked for five distributors would not scale to dozens or hundreds without automation.
Our Analysis
We began with a tightly focused analysis phase that emphasized operational workflows and pain points rather than hypothetical features. Key findings:
- Every store must operate autonomously for daily billing yet sync critical data to a central system on scheduled intervals.
- MRP on labels could not be changed; therefore every sale must compute the tax back from MRP to produce compliant invoices and reports.
- Distributors required role-based access with minimal learning curve, so the UI and workflows had to mirror existing paper-based steps.
- Reporting and auditability were crucial for the owner to monitor distributor performance and spot irregular activities.
- The system should be modular, allowing re-use across multiple businesses and later conversion into a multi-business, multi-store SaaS model.
Solution We Proposed
We proposed a distribution management system focused on three pillars: autonomy, accuracy, and visibility.
- Multi-store architecture: Each store/distributor would run its own billing and inventory instance with a synchronized central database for consolidated reporting.
- Reverse tax calculation engine: Implement a robust routine to extract tax amounts from tax-inclusive MRPs and display item price, tax, and net amounts on bills and reports.
- Role-based workflows: Simple, role-focused screens for cashiers, store managers, and central admins to minimize training needs.
- Comprehensive reporting module: Pre-built reports for sales, stock movement, tax summaries, and exception alerts (like negative stocks or out-of-sync stores).
- Lightweight deployment: Build using widely-supported, cost-effective technologies (PHP 5.6 and MySQL) to match client hosting and skills.
- Training and support plan: On-site training sessions, printed manuals, and follow-up support during early adoption.
Technology Used
Given the constraints and hosting environment of 2005–2010, we selected pragmatic technologies:
- Backend: PHP 5.6 — chosen for wide hosting availability and familiarity.
- Database: MySQL — reliable relational storage for transactional data and reporting queries.
- Frontend: JavaScript, HTML/CSS — straightforward interfaces optimized for low training overhead.
- Hosting: Shared VPS/host plans common at the time — chosen for cost-efficiency.
- Tools: MySQL stored procedures and optimized queries to support complex reports; basic cron-driven synchronization for multi-location data aggregation.
Features Implemented
The system included the following essential features tailored to distributor workflows:
- Store-level billing: Fast POS-like billing screens capturing items, quantity, size/variant, and printing invoices with itemized tax breakdown (reverse-calculated).
- Inventory management: Real-time stock ledger per store, support for transfers, adjustments, and goods received notes.
- Reverse tax calculation: Algorithm to split MRP into tax and base price components across multiple tax slabs.
- Consolidated reporting: Central dashboard aggregating distributor performance, stock positions, and tax summaries.
- User roles and permissions: Distinct access levels for cashiers, store managers, distributors, and admins.
- Audit trail: Transaction logs for bills, returns, and stock adjustments to provide traceability.
- Backup and recovery: Regular database backups and export/import features for offline reconciliation.
- Localized UI: Simple language and labels matched to the client’s operating style to reduce onboarding time.
Business Results
The solution delivered measurable improvements across operational and managerial dimensions:
- Faster billing, fewer errors: Reverse tax automation eliminated manual calculation errors and aligned printed invoices with regulatory requirements.
- Expanded reach: With the software in place, SangaMeshwar expanded from 5 to 45 distributors in Haryana — a ninefold increase in distribution footprint during the system’s initial five-year run.
- Improved visibility: Centralized reports allowed the owner to monitor distributor sales, stock levels, and margins more clearly.
- Lower training overhead: Intuitive screens and on-site training meant staff adapted quickly; we delivered the working product and trained users within three months.
- Sustained support: Continuous updates and support kept the system stable over five years, enabling routine business operations without frequent downtime.
Despite these gains, the business later suffered non-technical risks: unlawful activities by some distributors and subsequent legal cases caused the enterprise to collapse in year six. This event underscored that while software strengthens operational control and visibility, it cannot replace due diligence, legal safeguards, and strong governance.
Lessons Learned
From this project we distilled several enduring lessons—technical and managerial:
- Build for human workflows: Software should map to how people actually work, not to idealized processes that users will resist.
- Visibility is necessary but not sufficient: Central reporting reveals anomalies, but internal controls and legal frameworks are needed to act on them.
- Keep tax logic transparent: Tax-inclusive pricing needs deterministic reverse-calculation routines and clear audit trails to maintain trust and compliance.
- Design for scale early: Even small projects benefit from modular architecture so future pivots (like becoming multi-business SaaS) are feasible.
- Train on-site when remote is impossible: Early adoption succeeds faster when users get hands-on, contextual training.
- Governance matters: Software can deter, detect, and document fraud, but governance policies and distributor vetting are vital to prevent collapse.
How Similar Businesses Can Benefit
Footwear wholesalers, distributors, and small retail chains can gain immediate value by implementing a system like the one we designed:
- Reduce invoice discrepancies by automating reverse tax calculations for tax-inclusive MRPs.
- Preserve local operational autonomy while gaining consolidated management insights.
- Scale distribution quickly without proportionally increasing administrative effort.
- Build an audit trail to support compliance, tax filing, and dispute resolution.
- Convert on-premise installations into a multi-business SaaS platform when growth demands centralized control across brands or geographies.
Frequently Asked Questions
What problem did RiAcube solve for SangaMeshwar Footwears?
RiAcube designed and implemented a distribution management system that supported multi-store billing, inventory control, reverse tax calculation for MRP-inclusive pricing, and consolidated reporting across distributors.
How did the software handle tax-inclusive MRP pricing?
The system used a reverse tax calculation engine to split MRP into base price and tax components, displaying both on invoices and generating correct tax summaries for reporting.
What technologies were used to build the system?
The initial system used PHP 5.6 for backend logic, MySQL for the database, and JavaScript/HTML for the frontend; hosted on cost-effective shared hosting available at the time.
How long did development and deployment take?
Development took roughly two months, testing and bug fixing about 15 days, followed by deployment and on-site training—delivered in roughly three months from project start.
Could the system support dozens of distributors?
Yes; the architecture supported store-level autonomy with centralized synchronization and reporting. During the system’s first five years, SangaMeshwar expanded from 5 to 45 distributors.
Did RiAcube provide ongoing support?
Yes. RiAcube provided continuous updates and support throughout the system’s operational life, ensuring stability and incremental improvements.
Can modern businesses use the same approach today?
Absolutely. The core principles—autonomous store operations, reverse tax logic, consolidated reporting, and audit trails—remain relevant. Today’s implementations would use more current stacks and cloud hosting for scalability.
How did the solution improve reporting and oversight?
Centralized dashboards and reports provided owner-level visibility into distributor sales, stock positions, margins, and exceptions, enabling quicker decision-making and anomaly detection.
What limitations did the system have?
It relied on the governance and vetting of distributors to prevent unlawful activities. Technically it was tied to older stacks (PHP 5.6), so modern migration is advisable for long-term scalability.
Is the platform suitable for multiple businesses?
Yes. After the SangaMeshwar experience, the platform was restructured into a multi-business, multi-store model and launched as riacube.us to support multiple brands and business units.
How can a footwear wholesaler implement similar controls fast?
Start with automating billing and tax calculations, deploy store-level inventory ledgers, implement consolidated reporting, and schedule on-site training. Prioritize audit trails and role-based access.
What are the top risks to watch for during distributor expansion?
Weak governance, inadequate vetting, absence of audit trails, and lack of legal contracts or monitoring can create operational and legal risks that software alone cannot eliminate.
“As a founder, I’ve always believed that good software reflects real-world workflows — and real-world workflows demand clarity, not complexity. We built a system that made daily work simple, gave the owner visibility, and left a clear audit trail. Software can empower growth, but governance must walk alongside it.” — Sharat Bharadwaj, Founder & Sr. Consultant, RiAcube Software Hub


