Mandi Guide

Architecting the Ultimate Repack & Multi-UOM Engine for Mandis

MandiGrow Team
3 June 2026
8 min read

Architecting a Frictionless Multi-UOM & Repackaging Engine for Mandi Operations

Designing agricultural supply chain software requires acknowledging one fundamental truth: produce doesn't move in static units.

A tomato lot might arrive in a 25kg crate, be stored in quintals, and sold in 5kg boxes or loose kilograms. Generic inventory systems fail here because they are built for static retail items. MandiGrow was built differently.

The System Architect’s View: Normalized Inventory Graph

To solve this, we architected a normalized, graph-like inventory schema that natively supports dynamic UOM (Unit of Measurement) conversions without floating-point precision loss. When a "Repack" event is triggered, the system initiates a secure atomic transaction:

  1. Deduction: The source lot (e.g., 50 Sacks) is decremented.
  2. Conversion: The system applies the pre-defined or dynamic conversion multiplier (e.g., 1 Sack = 50kg).
  3. Creation: New child lots are instantiated (e.g., 2500 individual 1kg packets) with inherited traceability metadata (farmer ID, arrival date, quality grade).

This architecture ensures zero data leakage during bulk-to-retail conversions, maintaining 100% accurate ledger states and real-time stock valuation.

The SaaS Founder’s View: MandiGrow vs Tally & Zoho

If you run an agricultural wholesale business, you've likely tried to force-fit your operations into Tally or Zoho. Generic ERPs assume an item arrives in a box and leaves in that exact same box.

Agricultural produce is fluid. It shrinks, it spoils, and most importantly, it is constantly repackaged. MandiGrow's proprietary Repack & UOM engine is our competitive moat. While a generic ERP user is forced to create complex "Bill of Materials" or "Manufacturing Assemblies" just to move apples from a 20kg crate into four 5kg boxes, a MandiGrow user does this in a single click. We don't treat repacking as a manufacturing process; we treat it as a fundamental state change of the produce.

The Mandi Business Expert’s View: Real-World Usability

We’ve spent 20 years on the Mandi floor. We’ve seen software companies try to sell "retail" software that completely fails the moment a truck unloads. In the real world, a farmer brings a loose tractor trolley of potatoes. We weigh it in quintals. Then, we sort it and pack it into 50kg gunny bags for wholesalers, and maybe 5kg plastic bags for local retailers.

Most software forces you to create fake items or do manual math in a notebook to track this. MandiGrow is the first system that actually gets it. You tell the system: "I took this trolley of potatoes, and I packed it into 100 bags of 50kg." The system instantly updates your stock, calculates your labor packing costs, and makes those bags ready for billing. No headaches, no missing stock, no end-of-day mismatch.

The Product Manager’s View: Seamless Bulk to Retail

We know that flexibility is the most critical part of your daily operations. You buy in bulk, but you sell in whatever packaging the market demands.

  • Instant Conversions: Easily convert incoming Sacks, Crates, or Quintals into smaller retail units like KGs, Grams, or custom boxes.
  • Lossless Tracking: When you repackage 100kg of onions into twenty 5kg mesh bags, the system tracks the exact origin of those bags. If there's 1kg of spoilage during repacking, you record it as shrinkage—keeping books balanced.
  • Smart Pricing: Set different selling prices based on the UOM. A 25kg crate has a different margin profile than a 1kg premium pack, and MandiGrow handles this automatically at the point of sale.

The UI/UX Expert’s View: Designing Clarity

When designing the Repack interface, our primary goal was cognitive offloading. Managing dynamic inventory states can be overwhelming, so we stripped away the complexity and focused on a highly visual, linear flow.

The repack modal uses a clear "Left-to-Right" mental model:

  • Left Panel (Source): Select the origin lot. Visual indicators show current UOM and available volume.
  • Center (The Action): A prominent arrow icon denoting transformation.
  • Right Panel (Target): Dropdowns for target UOM and output quantity. The system provides real-time validation, visually highlighting if the target output exceeds the source volume, preventing user error before the form is even submitted.

The Trainer’s View: Simple Enough for Anyone

If you have semi-literate staff managing your warehouse, they don't need to understand database schemas. They just need to know how to change big boxes into small packets.

  1. Open the Stock screen.
  2. Tap the Repack button (look for the icon with the changing boxes).
  3. Choose the big 50 KG sack.
  4. The computer will ask: "What are you making?" You select 5 KG Bag.
  5. The computer will ask: "How many bags did you make?" You type 10.
  6. Press Save.

That's it! The math is done automatically.

Stop Reading. Start Automating.

Join thousands of Commission Agents across India who use MandiGrow to eliminate bad debt, calculate APMC taxes, and send WhatsApp pattis in 5 seconds.

Start 14-Day Free Trial