From b6bd36d78a35e9c9de4318e95f7db70277c222e4 Mon Sep 17 00:00:00 2001 From: efernandez Date: Fri, 7 Dec 2018 18:18:38 -0300 Subject: [PATCH] =?UTF-8?q?guardo=20posici=C3=B3n?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/js/controller.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/js/controller.js b/src/js/controller.js index 9f89c17..3d51946 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -7,8 +7,9 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', 'focaCrearCobranzaService', 'focaModalService', '$cookies', + 'focaSeguimientoService', function($scope, $uibModal, $location, $filter, focaCrearCobranzaService, focaModalService, - $cookies) + $cookies, focaSeguimientoService) { $scope.botonera = [ {texto: 'Cliente', accion: function() {$scope.seleccionarCliente();}}, @@ -208,6 +209,17 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', focaCrearCobranzaService.guardarCobranza(cobranza).then(function() { focaModalService.alert('Cobranza guardada con éxito'); + focaSeguimientoService.guardarPosicion( + $scope.sucursal+$scope.comprobante, + 'Cobranza', + 'Nº: ' + $filter('comprobante')([ + $scope.puntoVenta, + $scope.comprobante + ]) + '
' + + 'Vendedor: ' + $scope.usuario.NomVen + '
' + + 'Total: ' + $filter('currency')($scope.getTotalCobrado()) + ); + $scope.cobranza = { fecha: new Date() }; -- 1.9.1