Commit 9d9072f4204bb1c4454b808726e0aac1baf2c6a2

Authored by Nicolás Guarnieri
1 parent 89be51a8e9
Exists in master

seguimiento para cobranza con numero correcto

Showing 1 changed file with 5 additions and 5 deletions   Show diff stats
src/js/controller.js
... ... @@ -208,19 +208,19 @@ angular.module('focaCrearCobranza') .controller('cobranzaController',
208 208 CLI: $scope.cobranza.cliente.COD
209 209 }
210 210 };
211   - focaCrearCobranzaService.guardarCobranza(cobranza).then(function() {
  211 + focaCrearCobranzaService.guardarCobranza(cobranza).then(function(result) {
212 212 focaModalService.alert('Cobranza guardada con éxito');
213 213  
214 214 focaSeguimientoService.guardarPosicion(
215   - $scope.comprobante,
  215 + result.data.numero,
216 216 'Cobranza',
217 217 'Nº: ' + $filter('comprobante')([
218   - $scope.puntoVenta,
219   - $scope.comprobante
  218 + result.data.sucursal,
  219 + result.data.numero
220 220 ]) + '<br/>' +
221 221 'Vendedor: ' + $scope.cobranza.cobrador.nombre + '<br/>' +
222 222 'Total: ' + $filter('currency')($scope.getTotalCobrado()),
223   - $scope.puntoVenta
  223 + result.data.sucursal
224 224 );
225 225  
226 226 $scope.cobranza = {