Ver código fonte

[Administration] Distributions : correctif init pointSaleDistribution

feature/souke
Guillaume Bourgeois 1 ano atrás
pai
commit
63c39ff1ea
1 arquivos alterados com 2 adições e 1 exclusões
  1. +2
    -1
      backend/web/js/vuejs/distribution-index.js

+ 2
- 1
backend/web/js/vuejs/distribution-index.js Ver arquivo

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

Carregando…
Cancelar
Salvar