How a weighing scale barcode works
A weighing scale barcode is an EAN-13 that starts with 2, followed by an item code, then the weight or the price, then a check digit. The billing software reads the first part to find the item and the second part to know how much, so a pre-weighed bag of dal bills in one scan.
These are also called price embedded or weight embedded barcodes. They are the standard way to put barcodes on loose items that are sold in different weights every time.
Why the barcode starts with 2
GS1, the body that runs retail barcode numbers worldwide, keeps numbers beginning with 20 to 29 for restricted, in-store use. A brand's product never starts with these, so the software knows a code starting with 2 is a shop's own code, not a maker's barcode. Within that range, the shop decides which prefix means what. A common choice in India:
- 21: the label carries the weight.
- 22: the label carries the price.
- 20: fixed-price in-store items with no weight inside (ordinary in-store codes).
There is no single national format in India that every scale follows. What matters is that your scale and your billing software agree.
Common layouts of the 13 digits
| Layout | Prefix | Item code | Extra | Weight or price | Check |
|---|---|---|---|---|---|
| A (most common) | 2 digits | 5 digits | none | 5 digits | 1 |
| B (with price check) | 2 digits | 4 digits | 1 price check digit | 5 digits | 1 |
| C (long item code) | 2 digits | 6 digits | none | 4 digits | 1 |
Layout A allows item codes up to 99999 and weights up to 99.999 kg (in grams) or prices up to ₹999.99 (in paise). Layout C allows more item codes but only four digits for the value, so a price label stops at ₹99.99. Many label scales let you pick from a list of layouts in their settings. Choose one and never change it while old labels are still on the shelf.
Worked example: decoding a weight barcode
Take this example label from a provision store's pre-packed section: 2100123012503, on a bag of toor dal. The shop uses layout A with 21 for weight.
| Digits | Part | Meaning |
|---|---|---|
| 21 | Prefix | This is a weight label |
| 00123 | Item code | Item 123 in the billing software: toor dal |
| 01250 | Weight in grams | 1,250 g = 1.250 kg |
| 3 | Check digit | Confirms the scan is correct |
At the counter, the software finds item 123, takes its current rate, say ₹160 a kilo in this example, and works out 1.250 × ₹160 = ₹200.00, adding GST at the item's rate. Stock of toor dal goes down by 1.250 kg.
The check digit works like any EAN-13: odd-position digits 2 + 0 + 1 + 3 + 1 + 5 = 12; even-position digits 1 + 0 + 2 + 0 + 2 + 0 = 5, times 3 = 15; total 27; the next multiple of 10 is 30, so the check digit is 3. Check your own scale's labels with the free EAN-13 check digit calculator. The method is explained step by step in EAN-13 vs Code 128.
The same bag as a price barcode
If the shop used 22 for price labels, the same bag would read 2200123200006: prefix 22, item 00123, price 20000 paise = ₹200.00, check digit 6. The counter bills ₹200.00 for toor dal straight from the label.
Weight label or price label?
| Weight label (21) | Price label (22) | |
|---|---|---|
| Price at the counter | Usually worked out from the software's current rate | Fixed when the label was printed |
| After a rate change | Old bags bill at the new rate | Old bags still bill at the old price until relabelled |
| Stock | Exact weight leaves stock | Weight has to be worked back from the price |
| Expensive items | No problem | Five price digits stop at ₹999.99; a 1 kg bag of cashew may not fit |
For most kirana and supermarket loose items, weight labels are the cleaner choice. Price labels suit a shop where the scale and the counter are run by different people and the price must not change after packing.
Label scales vs counter scales
Label-printing scale
A label scale weighs the item, works out the price from rates stored inside the scale, and prints a sticker with the barcode. It is fast for a busy fruit and vegetable section. The catch is that each item's code and rate live in the scale as well as in the billing software. When you change a rate in one, change it in the other, or bags packed in the morning bill at a different price from the shelf tag.
Counter scale with no printer
A plain digital scale shows the weight. Some can send it to the computer by a USB or RS-232 (serial) cable, so the weight drops into the bill line without typing. Others are read by eye and the cashier types the weight.
Pre-pack labels without a label scale
There is a third way. Weigh the bag on any scale, enter the weight in your billing software, and print the weight label on your ordinary barcode label printer. No label scale is needed, and the rate only lives in one place. This suits shops that pack a few dozen bags in the quiet hours. Label sizes for this, such as 50x30 or 100x50 mm, are in the barcode label size guide.
How a shop sets the format, step by step
- Find the scale's barcode setting. In the label scale's manual or menu, look for the barcode format or label format. Note the prefix, the item code length, whether it prints weight or price, and the decimals.
- Match the item codes. The item code in the scale (often called the PLU number) must be the same as the item code in your billing software. Toor dal is 123 in both.
- Enter the same format in the billing software: prefix 21, item code 5 digits, value 5 digits, value is weight in grams.
- Print five test labels: one under 100 g, one at exactly 1 kg, one heavy bag, one cheap item and one expensive item.
- Scan each at the counter and check item, weight and amount against the label.
- Write the format down and stick it inside the scale cabinet, so the next technician does not change it.
When scale barcodes go wrong
| What happens | Cause | Fix |
|---|---|---|
| 1.250 kg bills as 12.500 kg | Decimals set differently in scale and software | Set grams (3 decimals for kg) in both |
| "Item not found" for every scale label | Software does not know prefix 21 is a scale prefix | Add the prefix to the scale barcode setting |
| Bag of dal bills as sugar | PLU in the scale differs from the item code in software | Make the codes match, then reprint |
| Costly items print a wrong price | Price is too big for the digits | Use weight labels, or a layout with more value digits |
| Morning bags bill at yesterday's rate | Price labels printed before a rate change | Use weight labels, or relabel after rate changes |
Two other checks. Pre-packed and labelled food can carry a different GST rate from the same item sold loose, depending on how it is packed and labelled, so set the GST on each item as your CA advises. Pre-packed goods may also need other declarations on the label under legal metrology rules; check with your CA or the local legal metrology office.
Scale barcodes in Cartix Prime
On Silver and up, Cartix Prime prints weighed-pack labels with the item name, weight, price, rate, packing date and a scale barcode with the prefix 21, on the same label printers used for barcode stickers. At the counter, it reads those barcodes into the bill, and it reads a label scale's own barcodes too, using the format the shop sets. A counter scale wired by USB or RS-232 is read live into the bill in Chrome, Edge or the Windows app, or the weight is typed. Loose items can also be billed by amount, such as "₹50 of sugar".
Silver is ₹4,999 a year for one computer and one phone, or ₹1,099 phone only, with 7 days free for every new shop. The full feature list is on the weighing scale billing page, and the rest of the barcode workflow on the barcode software page. If loose items are the reason your counter cannot scan everything, see what to do about items without barcodes.