Sfoglia il codice sorgente

[Backend] Distribution > édition commande : rechargement des prix lors de la sélection d'un utilisateur

feature/souke
Guillaume Bourgeois 1 anno fa
parent
commit
de6eb5b6bd
2 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. +5
    -0
      backend/web/js/vuejs/distribution-index.js
  2. +1
    -1
      producer/web/js/vuejs/order-order.js

+ 5
- 0
backend/web/js/vuejs/distribution-index.js Vedi File

@@ -782,6 +782,11 @@ Vue.component('order-form',{
} ;
},
template: '#order-form-template',
watch: {
'order.id_user': function () {
this.userChange();
}
},
methods: {
checkForm: function() {
this.errors = [] ;

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

@@ -593,7 +593,7 @@ var app = new Vue({
if(order != null) {
total = this.priceTotal() - order.amount_paid ;
}
return this.producer.credit_limit == null || (this.producer.credit_limit != null && (this.user.credit - total >= this.producer.credit_limit)) ;
return this.producer.credit_limit == null || (this.producer.credit_limit != null && (this.user.credit - total >= this.producer.credit_limit)) ;
},
countProductsByCategory: function(category) {
var count = 0 ;

Loading…
Annulla
Salva