Commit a9397e00029f138600a8b7aa81ad0747463a782e
Exists in
master
Merge branch 'master' into 'master'
Master See merge request !8
Showing
1 changed file
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 = { |