Browse Source

[FIX] display /kg for to_weight products

pull/371/head
Sylvain LE GAL 6 years ago
parent
commit
52c99c8151
  1. 6
      pos_pricelist/static/src/js/models.js

6
pos_pricelist/static/src/js/models.js

@ -576,7 +576,11 @@ function pos_pricelist_models(instance, module) {
|| 0, this.pos.dp['Product Price']);
price = this.pos_widget.format_currency(price);
if (k == 0) {
$(product_ui).find('.price-tag').html(price);
if (product.to_weight) {
$(product_ui).find('.price-tag').html(price + '/Kg');
} else {
$(product_ui).find('.price-tag').html(price);
}
}
prices_displayed += qty
+ 'x &#8594; ' + price + '<br/>';

Loading…
Cancel
Save