Sfoglia il codice sorgente

[Administration] Distributions : correctif init pointSaleDistribution

feature/souke
Guillaume Bourgeois 1 anno fa
parent
commit
63c39ff1ea
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      backend/web/js/vuejs/distribution-index.js

+ 2
- 1
backend/web/js/vuejs/distribution-index.js Vedi File

@@ -266,7 +266,8 @@ var app = new Vue({
this.countActivePointsSale = 0;
this.setIdActivePointSale(0);
for (var i = 0; i < this.pointsSale.length; i++) {
if (this.pointsSale[i].pointSaleDistribution[0].delivery == 1) {
if (this.pointsSale[i].pointSaleDistribution
&& this.pointsSale[i].pointSaleDistribution[0].delivery == 1) {
this.countActivePointsSale++;
this.setIdActivePointSale(this.pointsSale[i].id);
}

Loading…
Annulla
Salva