Commit ef2fc13784e816510622bc1b0295cc22496e1c52
1 parent
96fd1c75d0
Exists in
master
Espacios en blanco - Identacion
Showing
1 changed file
with
3 additions
and
6 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -126,13 +126,10 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', |
126 | 126 | var cuerpos = []; |
127 | 127 | var imgs = []; |
128 | 128 | var observacion; |
129 | - | |
130 | 129 | //TODO: habilitar edición |
131 | 130 | $scope.editando = false; |
132 | 131 | focaBotoneraLateralService.startGuardar(); |
133 | - | |
134 | 132 | $scope.saveLoading = true; |
135 | - | |
136 | 133 | for(var i = 0; i < $scope.cobranza.facturas.length; i++) { |
137 | 134 | var cuerpoFactura = { |
138 | 135 | CYV: 'V', |
... | ... | @@ -143,7 +140,7 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', |
143 | 140 | LOP: 'L', |
144 | 141 | TIL: $scope.cobranza.facturas[i].TCO, |
145 | 142 | COM: $scope.cobranza.facturas[i].numeroFactura + '-' + |
146 | - $filter('rellenarDigitos')($scope.cobranza.facturas[i].NCU), | |
143 | + $filter('rellenarDigitos')($scope.cobranza.facturas[i].NCU), | |
147 | 144 | FEC: new Date($scope.cobranza.FEC) |
148 | 145 | .toISOString().slice(0, 19).replace('T', ' '), |
149 | 146 | IMP: Math.abs($scope.cobranza.facturas[i].IMP || |
... | ... | @@ -154,7 +151,6 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', |
154 | 151 | }; |
155 | 152 | cuerpos.push(cuerpoFactura); |
156 | 153 | } |
157 | - | |
158 | 154 | for (var j = 0; j < $scope.cobranza.cobros.length; j++) { |
159 | 155 | var efectivo = $scope.cobranza.cobros[j].tipo === 'Efectivo'; |
160 | 156 | var cuerpoCobros = { |
... | ... | @@ -284,7 +280,8 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', |
284 | 280 | }, |
285 | 281 | cliente: $scope.cobranza.cliente, |
286 | 282 | imgs: imgs, |
287 | - observacion: observacion | |
283 | + observacion: observacion, | |
284 | + facturasACobrar: $scope.cobranza.facturas | |
288 | 285 | }; |
289 | 286 | //COPIO cobranzaMail Y A cobranza LE ELIMINO EL VALOR NCU DE LOS CUERPOS |
290 | 287 | var cobranzaMail = angular.copy(cobranza); |