ERPNext for Grocery and Supermarket Retail: Shelf-Life Markdown Ladder, Counter Throughput and Dark Stores
A grocery business runs two clocks at once. One is the counter clock, where a queue of customers each buying thirty low-value items has to move fast enough that nobody abandons a trolley. The other is the shelf clock, where a crate of coriander has perhaps thirty-six hours of sellable life and a pack of curd has six days. Most retail software is built for one clock or the other. Systems designed for throughput treat stock as an abstraction that gets counted monthly; systems designed for perishables assume a pharmacy’s pace and a pharmacy’s ticket size. Grocery needs both simultaneously, across a catalogue that routinely runs into five figures of active SKUs, and that combination is what makes it a genuinely distinct operational problem rather than a variation on general retail.
Organised retail now accounts for roughly 18 to 22 percent of India’s food and grocery sales, up from about 12 percent in 2019, and is growing at 14 to 16 percent a year against a traditional trade network of some 12 to 13 million kirana stores that still serves 80 to 85 percent of the population (IndexBox India food and grocery analysis, April 2026). The businesses in that growing organised sliver, supermarket chains, regional formats, hybrid online-offline grocers and dark-store operators, are the ones for whom the two-clock problem becomes a systems problem rather than a shopkeeper’s instinct.
What the shrink number hides
Shrinkage is the headline metric, and it is measured badly almost everywhere. A historical industry survey rated India among the highest-shrinkage retail markets globally at over 3 percent of sales against a global average nearer 2 percent, and Indian chains still running manual stock counts and disconnected outlet systems lose materially more (RetailPOS analysis, June 2026). What that single percentage conceals is that shrink is not evenly distributed. In the closest available departmental breakdown, from a US industry study, shrink ran at 8.7 percent in deli, 8.5 percent in bakery, 7.6 percent in seafood and 5.7 percent in meat against just 1.2 percent in dry grocery (FMI Food Industry Speaks, via Digimarc analysis).
The shape is the useful part. Perishables carry most of the loss and, in a typical supermarket, roughly half of the sales, which means a business managing one blended shrink number is managing the average of two entirely different problems. Zuneko’s implementations for retail businesses treat department-level and category-level shrink as separate measures from day one, because a chain that only ever sees the blended figure cannot tell an improving dry-goods operation from a deteriorating fresh one.
| The loss with a name | Where it actually happens | What a system can do about it |
|---|---|---|
| Spoilage and expiry | Fresh and short-life categories, concentrated in a handful of departments | Remaining-life visibility at batch level, so markdown happens on a rule rather than on a supervisor’s evening walk |
| Counting error | High-SKU-count aisles where cycle counts are infrequent | Cycle-count scheduling weighted by value and velocity rather than a uniform monthly sweep |
| Receiving variance | Short deliveries and quality rejections logged informally at the back door | Goods-receipt against purchase order with rejection reasons captured at the point of refusal |
| Theft and unaccounted movement | Small high-value items across formats | The residual after the first three are measured properly, which is the only honest way to size it |
The module set
The core spine is shared with every industry sibling in this library; the rows below it are grocery-tuned, and the last is unique to this page.
| Module | What it does for a grocery operation | Layer |
|---|---|---|
| Item and batch master | Every perishable line carries batch, received date and remaining shelf life rather than a single stock number | ERPNext-native |
| Multi-location stock | Store, back-room, cold room and dark store as distinct warehouses with transfers between them | ERPNext-native |
| Purchase and supplier management | Mandi and distributor purchasing with rate variability, rejections and short-supply captured at receipt | ERPNext-native |
| POS and billing | Counter throughput with weighing-scale integration and fast item lookup across a large catalogue | ERPNext-native, extended by Zuneko for scale and label formats |
| Cycle counting | Value-weighted and velocity-weighted count schedules per aisle | ERPNext-native, scheduled by Zuneko-built rules |
| Private label and packing | Bulk-to-pack conversion with yield loss recorded as production rather than as mystery shrink | ERPNext-native manufacturing, configured |
| Channel orders | Own app, website and aggregator orders landing in the same stock ledger as counter sales | Zuneko-built connectors |
| Shelf-life markdown ladder | Remaining-life bands trigger staged price reductions automatically, with recovered margin tracked against the write-off that would otherwise have occurred | Zuneko-built, unique to this vertical |
The markdown ladder deserves the emphasis because it is the module that converts the shelf clock from a loss into a managed decision. Most grocery businesses do markdowns; almost none measure them. The ladder assigns each batch a remaining-life band, applies the configured reduction when the band changes, prints the revised label, and books the difference against a recovery account so the month-end question becomes answerable: how much stock did the ladder save, and at what margin cost. Zuneko builds this against ERPNext’s batch and pricing-rule foundations rather than as a bolt-on, which is what allows the recovery figure to reconcile against the ledger instead of living in a spreadsheet.
A ladder is configured per category rather than globally, because the right band structure for curd is wrong for bananas and absurd for rice:
| Category class, illustrative bands | First reduction | Second reduction | Final action |
|---|---|---|---|
| Ultra-short life, leafy and cut produce | 15 percent at end of day one | 40 percent on the morning of day two | Withdraw and record as spoilage the same evening |
| Short life, dairy and fresh bakery | 10 percent at 48 hours remaining | 30 percent at 24 hours remaining | Withdraw at expiry with the loss booked against the batch |
| Medium life, packaged chilled | 10 percent at 15 days remaining | 25 percent at 7 days remaining | Route to clearance shelf or staff sale |
| Long life, dry grocery | No time-based ladder | Slow-mover markdown on velocity, not on date | Range review rather than expiry management |
Worked example, illustrative figures. A store receives 200 packs of curd at ₹42 landed cost, MRP ₹60, with six days of life. Historic pattern says roughly 25 percent goes unsold at full price. Without a ladder, 50 packs are written off: ₹2,100 of cost, gone. With a three-band ladder, 10 percent off at 48 hours remaining and 30 percent off at 24 hours, suppose 30 of those 50 sell in the first band and 15 in the second. Recovery is 30 packs at ₹54 and 15 at ₹42, so ₹1,620 plus ₹630 against the ₹1,890 of cost those 45 packs represent, and only five packs write off at ₹210. The gross margin sacrificed to markdown is real, roughly ₹500 against full price, and the write-off avoided is ₹1,890. The ladder is worth running when the second number exceeds the first, which is exactly the calculation Zuneko instruments so it can be checked per category rather than assumed.
By making batch and remaining shelf life a property of stock rather than a date somebody reads off a pack, so every perishable line reports what is expiring inside which window without a physical audit. In Zuneko\u2019s ERPNext builds this sits on the native batch master, extended with the remaining-life bands that drive markdown and replenishment rules.
Four separable things: spoilage concentrated in fresh departments, counting error in high-SKU aisles, receiving variance logged informally at the back door, and theft, which is honestly only measurable as the residue once the first three are instrumented. A single blended shrink percentage hides all four, which is why Zuneko\u2019s reporting splits them from the first month.
Yes, and the practical constraints are catalogue hygiene and search speed at the counter rather than record count: item groups, barcodes, variant structures and weighted items need deliberate design before go-live. Zuneko treats that catalogue structuring as its own workstream, because a system loaded with three names for the same dal will produce three stock positions for it forever.
Counter throughput and the catalogue problem
A supermarket counter is one of the harshest environments any business system operates in: thirty-plus line items per bill, weighed goods needing a scale reading, loyalty lookup, multiple tenders, and a queue watching. The failure mode is rarely dramatic. It is a two-second delay per line item, which across a thirty-item bill is a minute, which across a peak hour is a queue that leaves. This is why Zuneko’s grocery deployments treat counter interaction design as an engineering requirement rather than a preference: barcode-first flows, weighted-item handling that reads the scale rather than asking for typed input, and offline-tolerant billing so a network blip does not stop trade.
The catalogue problem underneath it is duplicates. Grocery catalogues accrete: the same product entered by three staff over three years under three names, each carrying its own stock, its own history and its own reorder logic. The implementation sequence therefore puts catalogue deduplication before migration rather than after, because importing the mess faithfully preserves it at new-system prices, a discipline this library’s migration guides apply to every source system.
Worked example, illustrative figures. A five-store chain carries 12,000 active SKUs. Suppose 6 percent are duplicates, 720 records. Each duplicate splits stock and defeats reorder logic, so assume it causes just one avoidable stockout a quarter on a line selling ₹800 a week: that is roughly 720 stockouts a year at a modelled ₹400 of lost margin each, ₹2.88 lakh annually, before counting the time staff spend reconciling positions that were never separate. The number is invented for illustration, but the structure is why Zuneko refuses to quote a migration without a catalogue audit inside it.
Where the dark store fits
Quick commerce has changed grocery’s shape rather than replaced it. Aggregators expanded aggressively through 2025 and 2026, and grocers have responded with their own dark stores and ten-minute pilots (Technavio India grocery analysis, January 2026). Operationally, a dark store is not a store: no counter, no browsing, pick-path optimised layout, and a fill-rate obligation that punishes stockouts within hours rather than at the end of a week.
Figure 1. One stock ledger serving shelves, back room and dark store, with allocation rules per SKU
The diagram carries the argument: the moment a grocery business runs shelves and a dark store off separate stock records, it starts making allocation decisions blind, and the first symptom is a ten-minute promise broken on a line that was sitting in the back room of the store next door. Zuneko builds the allocation rules as configurable logic per SKU class rather than a single global policy, since fast-moving staples and slow high-value lines want opposite answers.
A dark store has no browsing loss and no counter, but carries a hard fill-rate obligation and a pick path that wants layout-aware stock placement, so its replenishment cadence and allocation priority differ from a shelf-serving store even for identical SKUs. Zuneko models each as its own warehouse under one ledger so allocation is a decision rather than an accident.
Yes, and the reason to want it is a single stock truth: counter sales, app orders and aggregator orders deducting from the same ledger is what prevents the classic failure of selling online what somebody already took off the shelf. The channel connectors are Zuneko-built rather than pre-packaged, which is stated plainly as a cost in this library\u2019s competitor teardowns.
The realistic field runs from POS-only products with bolt-on accounting, through retail-specific SaaS, to full ERP deployments, and the honest selection criterion is whether shelf life, multi-location stock and the accounting ledger need to sit in one system or can tolerate integration seams. Zuneko builds the single-system version on ERPNext, and says openly that a single-store operation with simple needs is usually better served by a good POS product.
Not on a uniform monthly sweep, which spends equal effort on a fast-moving high-value aisle and a slow-moving low-value one, but on schedules weighted by value and velocity so the aisles that generate discrepancy get counted most. Zuneko configures count schedules per category class rather than per store, since the right cadence for fresh produce and for household cleaning products differ by an order of magnitude.
Yes, though for a different reason: pharma tracks batch for regulatory recall, grocery tracks it for remaining life and markdown timing. The mechanism is the same and the purpose is not, which is why Zuneko configures batch behaviour per category rather than switching it on globally and letting staff scan expiry dates on rice.
The two layers, stated plainly
ERPNext natively provides the batch masters, multi-warehouse stock, purchasing, POS foundations, accounting and GST compliance that a grocery operation needs. What Zuneko builds on top is the vertical-specific behaviour: the markdown ladder, the counter interaction tuning for high-line-count bills, dark-store allocation rules, aggregator and own-app connectors, and the shrink reporting that separates the four loss types. Neither layer is oversold here: the platform is genuinely capable and genuinely generic, and the difference between a grocery chain running ERPNext well and running it badly is almost entirely in the second layer.
For a small chain with clean-enough master data, expect a scoped implementation measured in weeks per phase rather than days, with catalogue deduplication, counter hardware integration and store-by-store rollout as the three items that actually set the timeline. Zuneko sequences store go-lives one at a time with the highest-volume store last, for the same reason marketplace migrations switch the flagship channel last.
Often not, and that is worth saying directly: a single store with a simple catalogue and no online channel gets faster value from a good POS product at a fraction of the cost. Zuneko\u2019s own scoping conversations route businesses at that scale accordingly, and the case for a full system arrives with multiple locations, a dark store, private label production or an online channel that must share one stock truth.
Item-level HSN and rate mapping across a catalogue where rates genuinely differ line by line, weighted-item billing that computes tax on a computed value, and returns and credit notes that reconcile to filing data. ERPNext carries GST invoicing and returns support natively, and Zuneko configures the category-level rate mapping as part of catalogue structuring rather than leaving it to the billing screen.
