Browse Source

[Administration] Distributions : correctif init pointSaleDistribution

feature/souke
Guillaume Bourgeois 1 year ago
parent
commit
63c39ff1ea
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      backend/web/js/vuejs/distribution-index.js

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

this.countActivePointsSale = 0; this.countActivePointsSale = 0;
this.setIdActivePointSale(0); this.setIdActivePointSale(0);
for (var i = 0; i < this.pointsSale.length; i++) { 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.countActivePointsSale++;
this.setIdActivePointSale(this.pointsSale[i].id); this.setIdActivePointSale(this.pointsSale[i].id);
} }

Loading…
Cancel
Save