Kaynağa Gözat

[Backend] Prix dégressifs > Distribution : correctif

refactoring
Guillaume 2 yıl önce
ebeveyn
işleme
330b4f3e00
1 değiştirilmiş dosya ile 7 ekleme ve 3 silme
  1. +7
    -3
      backend/web/js/vuejs/distribution-index.js

+ 7
- 3
backend/web/js/vuejs/distribution-index.js Dosyayı Görüntüle

@@ -613,7 +613,11 @@ var app = new Vue({
Vue.set(app.ordersUpdate[keyOrderUpdate].productOrder[idProduct], 'unit_coefficient', response.data[idProduct].unit_coefficient);

if(updatePricesOnUpdateOrder) {
Vue.set(app.orderCreate.productOrder[idProduct], 'price', app.getBestProductPrice(app.orderCreate, idProduct, app.orderCreate.productOrder[idProduct].quantity));
console.log('new price : ');
Vue.set(
app.ordersUpdate[keyOrderUpdate].productOrder[idProduct],
'price',
app.getBestProductPrice(app.ordersUpdate[keyOrderUpdate], idProduct, app.ordersUpdate[keyOrderUpdate].productOrder[idProduct].quantity));
}
}
}
@@ -796,8 +800,8 @@ Vue.component('order-form',{
pointSaleChange: function(event) {
this.updateProductOrderPrices(true) ;
},
updateProductOrderPrices: function() {
this.$emit('updateproductorderprices') ;
updateProductOrderPrices: function(updateProductOrderPrices) {
this.$emit('updateproductorderprices', updateProductOrderPrices) ;
}
}
}) ;

Yükleniyor…
İptal
Kaydet