Skip to content
Light
English

Barcode Reading with Weight and Price (Scale Labels)

This article aims to explain the functionality of reading scale labels (barcode with weight or price embedded) in Demander.

The Demander barcode reading module has been expanded to interpret labels generated by scales (EAN-13 standard starting with digit 2). This functionality allows the seller to read the barcode of a heavy product (such as cold cuts, meats, bread) and the system automatically identifies the product and fills in the correct quantity in the order, based on the Weight or Total Price contained on the label.

The system performs the reading following the pattern:

    1. Identifies whether the code starts with the digit 2 and has 13 digits.
    1. Extracts the product code (positions 2 to 7).
    1. Extracts the variable value (positions 8 to 12), which can be the Weight or the Price, depending on the configuration.
    1. Locate the product in the catalog and add the calculated quantity to the order.

For the examples below, consider a product registered on Demander with code 12345 and Unit Price of R$ 50.00/kg.

Scenario 1: Reading by Weight (ean13ParaPeso Configuration)

  • The seller reads a cheese label with the code: 201234501500C (where C is the check digit).
  • Extracted Product Code: 012345 -> The system searches for product 12345.
  • Extracted value: 01500 -> The system interprets it as 1,500 grams(1.5 kg).
  • Action on Order: The system adds 1.5 to the product quantity.

Scenario 2: Reading by Price (ean13ParaPreco Configuration)

  • The seller reads a meat label with the code: 201234502500C.
  • Extracted Product Code: 012345 -> The system searches for product 12345.
  • Extracted value: 02500 -> The system interprets it as R$ 25.00.
  • Quantity Calculation: The system divides the Total Price (R$ 25.00) by the Unit Price (R$ 50.00).
    • Calculation: 25.00 / 50.00 = 0.5
  • Action on Order: The system adds 0.5 to the product quantity.

To activate this feature, you need to adjust the “Barcode scanning behavior” setting in additional company settings.

The available options are:

  • Default (0): The system reads the barcode and searches for the product exactly by the read code (original behavior).
  • Weight Reading (1): The system interprets the EAN-13 code starting with 2 as containing the Weight in grams.
  • Price Reading (2): The system interprets the EAN-13 code starting with 2 as containing the Total Price in cents.

Note: This setting is set at the company level and affects all linked sellers.

Q: What happens if I read code that doesn’t start with 2? A: The system will use the standard search behavior, looking for a product that has exactly that registered barcode.

Q: Does the system replace the quantity or sum? A: The system soma reads the quantity to the quantity existing in the item. If you read the label twice, the quantity will be doubled.

Q: How does the system know what the product is? A: The system extracts the 6 digits after the initial number 2 (positions 2 to 7 on the label) and uses this number to search for the product in the catalog by its main code. Leading zeros are disregarded in the search.

Q: Does it work offline? A: Yes, all product interpretation and search logic is performed locally on the device.