Browse Source

Merge pull request #3 from cellsnake/pos_pricelist_with_price_extra

[FIX] pos_pricelist does not include price_extra (product variant)
pull/47/head
Juan Carlos Montoya 9 years ago
parent
commit
244a808a7b
  1. 7
      pos_pricelist/static/src/js/models.js

7
pos_pricelist/static/src/js/models.js

@ -513,6 +513,11 @@ function pos_pricelist_models(instance, module) {
}
break;
}
//default price_extra is not included (product variants)
if(product['price_extra'] > 0.0){
price += product['price_extra']
}
return price
},
/**
@ -634,7 +639,7 @@ function pos_pricelist_models(instance, module) {
if (_.size(product_model) == 1) {
var product_index = parseInt(Object.keys(product_model)[0]);
pos_model.models[product_index].fields.push(
'categ_id', 'seller_ids'
'categ_id', 'seller_ids', 'price_extra'
);
}

Loading…
Cancel
Save