Pārlūkot izejas kodu

[Administration] Distributions : correctif init pointSaleDistribution

feature/souke
Guillaume Bourgeois pirms 1 gada
vecāks
revīzija
63c39ff1ea
1 mainītis faili ar 2 papildinājumiem un 1 dzēšanām
  1. +2
    -1
      backend/web/js/vuejs/distribution-index.js

+ 2
- 1
backend/web/js/vuejs/distribution-index.js Parādīt failu

@@ -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);
}

Notiek ielāde…
Atcelt
Saglabāt