To sell the same item by carton and by piece, give it a base unit (the smallest unit you sell, such as a piece), an alternate unit (the carton) and a conversion factor (how many pieces are in a carton). Stock is then kept in the base unit, and every purchase, sale and count in either unit is converted for you. In RealCloud, this works for ordinary items, but not for batch- or serial-tracked ones.
This guide is for hardware shops, grocers and wholesalers who buy in bulk and sell in smaller quantities, and want the stock to stay right.
The problem: buy one way, sell another
A supplier sells you a carton of 24 pieces, a bag of 50 kilos or a roll of 50 metres. Your customers want 6 pieces, 2 kilos or 7 metres. If the system only knows one unit, you end up with one of these:
- stock counted in cartons, with fractions that nobody understands,
- every purchase typed as a number of pieces by hand, with arithmetic mistakes,
- two separate products for the carton and the piece that never agree.
Units of measure solve this: one product, one stock figure, two ways to buy and sell it.
The three ideas
| Term | Meaning | Example |
|---|---|---|
| Base unit | The smallest unit you count and sell. Stock is kept in this unit | Piece |
| Alternate unit | A larger unit you use to buy or sell | Carton |
| Conversion factor | How many base units make one alternate unit | 1 carton = 24 pieces |
You also choose which unit is the default when you sell and when you buy, so staff do not pick one each time. A shop that buys cartons and sells pieces would default purchases to cartons and sales to pieces.
Worked example
A product comes in cartons of 24 pieces. The carton costs Rs. 7,200.00, and you sell each piece at Rs. 360.00.
| Step | Calculation | Result |
|---|---|---|
| Conversion factor | 1 carton = 24 pieces | 24 |
| Cost per piece | Rs. 7,200.00 / 24 | Rs. 300.00 |
| Margin per piece | Rs. 360.00 - Rs. 300.00 | Rs. 60.00 (about 17% of the selling price) |
| You buy 10 cartons | 10 x 24 | 240 pieces in stock |
| You sell 30 pieces | 240 - 30 | 210 pieces in stock |
| Stock in cartons | 210 / 24 | 8 cartons and 18 pieces |
The stock figure never has to be a fraction of a carton. It is always whole pieces, and you read it in cartons only when that helps.
Other common pairs
- Bags and kilos. A 50 kg bag bought whole and sold by the kilo: base unit kilo, alternate unit bag, factor 50.
- Rolls and metres. A 50 m cable roll sold by the metre: base unit metre, alternate unit roll, factor 50.
- Boxes and pieces. A box of 100 screws sold loose: base unit piece, alternate unit box, factor 100.
- Dozens and pieces. Base unit piece, alternate unit dozen, factor 12.
If your supply chain has more than one step (carton of boxes of pieces), choose the two units you actually transact in.
Setting up a product: a short checklist
- Decide the smallest unit you will ever sell. That is the base unit.
- Decide the larger unit you buy or sell in. That is the alternate unit.
- Count the base units inside one alternate unit. That is the conversion factor.
- Set the default purchase unit and default sales unit.
- Enter your purchase, wholesale and sales prices, and check which unit each price refers to.
- Test it: record one purchase in the alternate unit and one sale in the base unit, then read the stock figure and the cost per base unit.
Do this when you create the product, before you start trading it. It is much harder to untangle a product that has already been bought and sold in the wrong unit.
Wholesale and retail units
Many traders sell the carton to a shop and the piece to a walk-in customer, often at different prices. A simple approach: keep one product, sell cartons to trade buyers and pieces over the counter, and keep a wholesale price in addition to the regular price. Review the margin per piece on both, because a carton price that looks generous per carton may leave a thin margin per piece.
Common mistakes
- Factor upside down. Writing 1/24 instead of 24. The factor is base units per alternate unit.
- Wrong base unit. Making the carton the base unit, then selling "0.25 of a carton".
- Price in the wrong unit. Entering the carton price as the piece price, or the reverse. After setting up, test with one purchase and one sale and read the line.
- Changing the factor later. If a supplier changes the pack size from 24 to 20, existing stock does not change. Agree with your accountant and team how to handle a change.
- Uneven division. A carton price that does not divide evenly gives a per-piece cost with rounding.
- Counting in mixed units. Cartons and pieces on one count sheet. See how to do a stock count.
- Entering imports in the wrong unit. Make sure the quantity on the goods received note matches what you will sell. See what is a GRN.
Costing and units
Think of cost per base unit. If you buy a carton for Rs. 7,200 and it holds 24 pieces, each piece costs Rs. 300. For imports, freight and duty are spread over the items received, and then over the units, before you read the per-piece cost. See landed cost explained.
How RealCloud handles it
RealCloud is cloud accounting, inventory, billing and POS software, with an online store, built for Sri Lankan businesses.
- Base unit and alternate unit. Each product can have a base unit plus an alternate unit with a conversion factor.
- Default units. Set a default sales unit and a default purchase unit, so cartons are bought and pieces are sold without typing the conversion each time.
- One stock figure. Stock stays in one count, whichever unit the transaction uses. Weighted-average costing is per store.
- Limit: batch and serial items. Alternate units are not available for batch- or serial-tracked items. Items with an expiry date or a serial number use a single unit. Pick the unit you sell in, and when you receive cartons, enter the quantity in that unit (10 cartons of 24 is 240 pieces).
- Online store. Orders from your RealCloud online store arrive as sales orders using the same products and stock, so they use the same units.
RealCloud does not do price books or customer-specific price tables. You can keep sales, wholesale and purchase prices on the product, and the invoice and POS show the last price a customer paid. See how units work for hardware shops, grocery shops and wholesalers, or ask for a free demo call.