Browse Source

[Producer] Commande : correctif price total

refactoring
Guillaume Bourgeois 2 years ago
parent
commit
a3b1e9a536
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      producer/web/js/vuejs/order-order.js

+ 1
- 1
producer/web/js/vuejs/order-order.js View File

for(var key in this.products) { for(var key in this.products) {
var quantity = this.products[key].quantity_form; var quantity = this.products[key].quantity_form;
if(quantity > 0) { if(quantity > 0) {
price += quantity * this.getBestProductPrice(this.products[key].id, this.products[key].quantity_form);
price += (quantity / this.products[key].unit_coefficient) * this.getBestProductPrice(this.products[key].id, this.products[key].quantity_form);
} }
} }
if(format) { if(format) {

Loading…
Cancel
Save