ZunekoLabs
ZUNEKOLABS
Zuneko Labs
Zuneko Labsby Emdee Digitronics
Get Started
Back to HomeUOMconversionstock

How to Set Up the Item Master and UOMs in ERPNext

Almost every capability described elsewhere on this site assumes the item master works. Price comparison across locations, spend analysis by category, reorder logic, matching tolerances, supplier scorecards: all of them compute over coded items with consistent units, and none of them says anything useful when that assumption fails.

It fails quietly. Nothing errors, no report is blank, and the numbers that appear are wrong in ways nobody can see. Getting this right first is the least interesting work in an implementation and the work everything else rests on.

The one thing to understand before configuring anything

Every item has a stock unit of measure, and the stock ledger posts in that unit regardless of what unit a transaction used.

Buy in boxes, stock in pieces, and the purchase records a box quantity while the ledger records pieces. The bridge between them is the conversion factor on the item, and that factor is applied silently on every transaction thereafter.

If the factor is wrong, nothing complains. The purchase order looks right, the receipt looks right, the invoice matches, and the stock figure is wrong by exactly the ratio of the error, permanently, on every transaction for that item. As one ERPNext practitioner put it directly, the system will not warn you because it trusts your setup (Code with Karani, December 2025).

A wrong price is discovered by somebody who pays it. A wrong conversion factor is discovered by nobody, because every document in the chain is internally consistent and only the physical shelf disagrees.

The build sequence

  1. Decide the stock UOM per item first, and choose the smallest unit you genuinely count. Stock UOM is the hardest field to change later, because it governs every historical ledger entry.
  2. Set the item code convention, deciding whether codes come from a naming series or are entered by a person. Both work; mixing them within one catalogue does not.
  3. Build the item group structure before creating items, since groups drive analytics, defaults and permissions and are painful to restructure once items are attached.
  4. Create the item with its stock UOM, then add rows to the UOM table for any other unit the item is transacted in, each with its conversion factor to the stock UOM.
  5. Set the purchase UOM where the buying unit differs from the stocking unit, so purchase documents default correctly rather than relying on the buyer to change it each time.
  6. Verify the factor physically on the first receipt. Count what arrives against what the ledger posted. This is the only check that catches a plausible but wrong factor, and it takes one delivery.
  7. Restrict who can add units and edit factors, because both are quiet, permanent and easy to get wrong.

Item codes, and the decision people defer

The code convention is a decision that has to be made once and is frequently made by accident, item by item, by whoever created each one.

Two conventions work. A naming series produces sequential codes with no meaning, which is robust, unambiguous and requires a description to be readable. A structured code embeds meaning, such as category and specification, which is readable and eventually collides with reality when an item does not fit the structure.

The choice matters less than the consistency. What does not work is a catalogue where some codes are sequential, some are structured, some are the supplier's part number and some are an abbreviation somebody liked. That catalogue cannot be searched reliably, which means the person creating an item cannot tell whether it already exists, which produces duplicates, which is the actual failure.

ConventionStrengthWeaknessSuits
Naming seriesNo collisions, no ambiguityUnreadable without descriptionLarge catalogues, many creators
Structured codeReadable, sortable by meaningBreaks when an item does not fitStable catalogues, few categories
Supplier part numberMatches supplier documentsTwo suppliers, two codes, one itemNever as the primary code
Free text, no codeNothingEverythingNever

The last row is not a joke. A substantial share of the businesses arriving at an implementation are buying against free-text descriptions, and the first phase of the work is converting them, which is manual, slow and cannot be automated because deciding that four descriptions are one product requires somebody who knows what the business buys.

Worked example, illustrative rather than measured. A supplier delivers cable in coils. The stock UOM is set to metres and the purchase UOM to coils, with a conversion factor of 100 because a coil was assumed to hold 100 metres. The actual coil holds 90. Every purchase of ten coils posts 1,000 metres to stock where 900 arrived. Over a year of forty such purchases the ledger overstates stock by 4,000 metres, the consumption reports understate usage by the same amount, the reorder level never triggers correctly, and the physical count at year end shows a shortfall nobody can explain. At a rate of, say, 45 rupees a metre, the recorded stock value is overstated by 180,000 rupees. No document in the chain was ever wrong. The figures are constructed to show how a single factor propagates.

The cost of getting this wrong, expressed properly

It is worth being explicit about what a poor item master costs, because the work is dull and gets deprioritised against anything visible.

Every analytical capability in a procurement system is a computation over coded items. Cross-location price comparison asks whether two branches paid different amounts for the same item, which requires the system to know they are the same item. Spend by category requires items to be grouped. Consumption analysis and reorder logic require quantities in consistent units. Supplier performance on quality requires received and accepted quantities in the same unit as the order.

When the master is weak, none of these fails. Each returns a number. A price comparison across a catalogue with duplicates reports that no variance exists, because the same product under four codes never meets itself. A spend analysis over ungrouped items reports a long flat list with no categories. A reorder calculation on a wrong conversion factor triggers at the wrong point, permanently.

That is the specific danger. A missing capability is visible and gets fixed. A capability that runs and returns a confident wrong answer gets used for years, and the decisions taken on it are worse than the decisions that would have been taken with no report at all, because nobody applied judgement to a number that looked authoritative.

Where the UOM table causes trouble

Three situations account for most of it, and all three are avoidable at setup.

Units that are not fixed ratios. A bag of cement is fifty kilograms and a coil of cable is whatever the supplier wound. The first is a genuine conversion; the second is an estimate pretending to be one. Where the relationship varies, the honest answer is to stock and transact in the variable unit, weighing or measuring on receipt, rather than to record a factor that will be wrong on most deliveries.

Rates and units drifting apart. The rate on a transaction is per transaction unit. Buy in coils and the rate is per coil. A buyer comparing a per-coil quote against a per-metre quote is comparing nothing, and the comparison report will not correct for it. Standardising the quoting unit per item at the request stage is the fix, and it belongs in the sourcing process rather than in the item master.

Changing the stock UOM after transactions exist. This is the hard one. Historical ledger entries were posted in the old unit, so a change requires converting them, and utilities to do so exist precisely because the operation is not trivial. The practical advice is to treat stock UOM as permanent and to spend the extra hour choosing it at setup.

Who owns this, and why it usually has no owner

Item master data sits between functions and is claimed by none of them, which is the reason it degrades.

Stores care about the stock unit and the physical count. Purchase cares about the buying unit, the code and finding the item at requisition. Production cares about the specification. Finance cares about the tax classification and the valuation. Each function needs the record to be right in its own dimension and none of them owns the record.

The practical consequence is that items get created under pressure, by whoever needs one, at the moment they need it, which is the worst possible condition for a decision that is permanent. A buyer with a requisition to place and no matching item will create one in ninety seconds, and that record then carries a guessed conversion factor and an inconsistent code for the rest of its life.

Two arrangements fix it and both are organisational rather than technical. Either item creation is a request routed to a named owner who creates the record properly, which adds hours to the first purchase of a new item and saves the catalogue, or creation stays distributed with a mandatory review queue where a data owner checks new items weekly and corrects them before volume accumulates. The first is better and the second is more likely to survive contact with an urgent purchase.

What does not work is leaving it unowned and hoping discipline holds, which is the arrangement almost every business arrives with.

What to check before declaring the master ready

Four checks, each of which finds real problems, none of which takes long.

Duplicate scan on description and specification, not just on code, because duplicates are created by people who could not find the existing item. Conversion factor verification against a physical count for every item with a non-unity factor, on the first receipt. A review of every item with more than two rows in the UOM table, since a long table usually means somebody was accommodating suppliers rather than modelling the item. And a check that every purchased item carries the tax classification the compliance module needs, since that field is a tax exposure rather than a data completeness issue.

Questions worth asking