Commit b6bd36d78a35e9c9de4318e95f7db70277c222e4
1 parent
5543f68954
Exists in
master
guardo posición
Showing
1 changed file
with
13 additions
and
1 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -7,8 +7,9 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', |
7 | 7 | 'focaCrearCobranzaService', |
8 | 8 | 'focaModalService', |
9 | 9 | '$cookies', |
10 | + 'focaSeguimientoService', | |
10 | 11 | function($scope, $uibModal, $location, $filter, focaCrearCobranzaService, focaModalService, |
11 | - $cookies) | |
12 | + $cookies, focaSeguimientoService) | |
12 | 13 | { |
13 | 14 | $scope.botonera = [ |
14 | 15 | {texto: 'Cliente', accion: function() {$scope.seleccionarCliente();}}, |
... | ... | @@ -208,6 +209,17 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', |
208 | 209 | focaCrearCobranzaService.guardarCobranza(cobranza).then(function() { |
209 | 210 | focaModalService.alert('Cobranza guardada con éxito'); |
210 | 211 | |
212 | + focaSeguimientoService.guardarPosicion( | |
213 | + $scope.sucursal+$scope.comprobante, | |
214 | + 'Cobranza', | |
215 | + 'Nº: ' + $filter('comprobante')([ | |
216 | + $scope.puntoVenta, | |
217 | + $scope.comprobante | |
218 | + ]) + '<br/>' + | |
219 | + 'Vendedor: ' + $scope.usuario.NomVen + '<br/>' + | |
220 | + 'Total: ' + $filter('currency')($scope.getTotalCobrado()) | |
221 | + ); | |
222 | + | |
211 | 223 | $scope.cobranza = { |
212 | 224 | fecha: new Date() |
213 | 225 | }; |