Point of Sale - Price to Weight
by Contaura LLC
· original work by La Louve, GRAP, OCA
pos_price_to_weight
$ 29.00
Point of Sale - Price to Weight
This module extends Tulio Point Of Sale features, to allow to scan barcode with price and to compute according quantity.
In Tulio by default, there are three types of barcode rules for products.
- ‘Unit Product’ (type=’product’). Scanning a product will add a unit of this product to the current order.
- ‘Priced product’ (type=’price’). A price is extracted from the barcode, and a new line with the given price and a quantity = 1 is added to the current order.
- ‘Weighted product’ (type=’weight). A weight is extracted from the barcode, and a new line with the given weight, and a computed price (quantity * Unit price) is added to the current order.
This module add a new option:
- ‘Priced Product (Computed Weight)’ (type=’price_to_weight’). A price is extracted from the barcode, and a new line with the given price, and a computed quantity (Price / Unit Price) is added to the current order.
This module is usefull in shops with products scaled, to manage correctly stock quantities.
Samples
- Given a product with a unit price of 1,50€ / kg
- The barcode is 0212345{NNNDD}x where:
- 02 is the prefix of the barcode rule
- 12345 is the product number
- {NNNDD} is the price of the scaled product
- x is the control digit
if {NNNDD} is 00265, the price is so 2,65€ and the according quantity is 2,65€ / 1,5 €/kg = 1,767 kg
if {NNNDD} is 00810, the price is so 8,10€ and the according quantity is 8,10€ / 1,5 €/kg = 5,400 kg
Table of contents
Configuration
- Go to Point of Sale > Configuration > Barcode Nomenclatures
- Edit your barcode rules, according to your barcodes settings
- Go to Point of Sale > Configuration > Point of Sale
- Select the ‘Unit Price’ field that will be used to convert the price to weight.
Note:
By default, this is the field list_price that will be used. If you want to use a custom field, it should be loaded in the javascript file calling
models.load_fields("product.product", ['my_custom_field']);
| Technical name | pos_price_to_weight |
|---|---|
| Module version | 12.0.2.0.1 |
| Tulio versions | 1.0 |
| Category | Point of Sale |
| Publisher | Contaura LLC
Ported to Tulio, tested and supported by Contaura LLC. |
| Original authors | La Louve, GRAP, OCA |
| License | AGPL-3
Open source: you may use, change and share
this module under its license. The price covers the Tulio port, its testing on Tulio
1.0 and the download. |
| Requires (Tulio core) | point_of_sale |
| Lines of code | 178 |
| Downloads | 0 |
| Released | 12/06/2026 |