From 02ed9ea9f36236f0dd73335eb0a94c654612f1fd Mon Sep 17 00:00:00 2001 From: Jose Pinto Date: Fri, 14 Dec 2018 16:38:39 -0300 Subject: [PATCH] agrego foca-botonera-facturador --- index.html | 1 + package.json | 1 + src/js/controller.js | 18 +++--------------- src/js/service.js | 3 +++ src/views/cobranza.html | 17 +---------------- 5 files changed, 9 insertions(+), 31 deletions(-) diff --git a/index.html b/index.html index 171415f..e467338 100644 --- a/index.html +++ b/index.html @@ -18,6 +18,7 @@ + diff --git a/package.json b/package.json index 79fd0af..583c022 100644 --- a/package.json +++ b/package.json @@ -24,6 +24,7 @@ "angular-ladda": "^0.4.3", "angular-route": "^1.7.5", "bootstrap": "^4.1.3", + "foca-botonera-facturador": "git+http://git.focasoftware.com/npm/foca-botonera-facturador.git", "foca-busqueda-cliente": "git+http://git.focasoftware.com/npm/foca-busqueda-cliente.git", "foca-directivas": "git+http://git.focasoftware.com/npm/foca-directivas.git", "foca-modal": "git+http://git.focasoftware.com/npm/foca-modal.git", diff --git a/src/js/controller.js b/src/js/controller.js index 96e3bb9..f4ac093 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -11,19 +11,7 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', function($scope, $uibModal, $location, $filter, focaCrearCobranzaService, focaModalService, $cookies, focaSeguimientoService) { - $scope.botonera = [ - {texto: 'Cliente', imagen: '../img/abmPrecios.png', - accion: function() {$scope.seleccionarCliente();}}, - {texto: 'Cobrador', imagen: '../img/abmPrecios.png', - accion: function() {$scope.seleccionarCobrador();}}, - {texto: 'Comprobantes', imagen: '../img/abmPrecios.png', - accion: function() {$scope.swichDeuda();}}, - {texto: 'Cobros', imagen: '../img/abmPrecios.png', - accion: function() {$scope.swichCobro();}}, - {texto: 'Moneda', imagen: '../img/abmPrecios.png', - accion: function() {$scope.seleccionarMoneda();}}, - {texto: '', accion: function() {}}, - ]; + $scope.botonera = focaCrearCobranzaService.getBotonera(); $scope.datepickerAbierto = false; $scope.cobroDeuda = true; $scope.show = false; @@ -248,11 +236,11 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', ); }; - $scope.swichCobro = function() { + $scope.seleccionarCobros = function() { $scope.cobroDeuda = false; }; - $scope.swichDeuda = function() { + $scope.seleccionarComprobantes = function() { $scope.cobroDeuda = true; }; diff --git a/src/js/service.js b/src/js/service.js index 6ecaa0d..4d752d7 100644 --- a/src/js/service.js +++ b/src/js/service.js @@ -12,6 +12,9 @@ angular.module('focaCrearCobranza') }, guardarCobranza: function(cobranza) { return $http.post(API_ENDPOINT.URL + '/recibo/guardar', cobranza); + }, + getBotonera: function() { + return ['Cliente', 'Cobrador', 'Comprobantes', 'Cobros', 'Moneda']; } }; }]); diff --git a/src/views/cobranza.html b/src/views/cobranza.html index 700c091..d2a4ad0 100644 --- a/src/views/cobranza.html +++ b/src/views/cobranza.html @@ -80,22 +80,7 @@
-
-
- -
-
+
-- 1.9.1