Browse Source

[FIX] display /kg for to_weight products

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

4
pos_pricelist/static/src/js/models.js

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

Loading…
Cancel
Save