diff --git a/index.html b/index.html index e467338..9b0ecf9 100644 --- a/index.html +++ b/index.html @@ -18,12 +18,13 @@ + + + - - diff --git a/src/js/app.js b/src/js/app.js index 4a5e997..1e84139 100644 --- a/src/js/app.js +++ b/src/js/app.js @@ -1,6 +1,7 @@ angular.module('focaCrearCobranza', [ 'ngRoute', 'ui.bootstrap', + 'focaBotoneraLateral', 'focaModal', 'focaModalFactura', 'focaBusquedaCliente', diff --git a/src/js/controller.js b/src/js/controller.js index 083ad08..c4f5fb9 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -1,15 +1,18 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', [ '$scope', + '$rootScope', + '$timeout', '$uibModal', '$location', - '$filter', 'focaCrearCobranzaService', 'focaModalService', '$cookies', + '$filter', 'focaSeguimientoService', - function($scope, $uibModal, $location, $filter, focaCrearCobranzaService, focaModalService, - $cookies, focaSeguimientoService) + 'focaBotoneraLateralService', + function($scope, $rootScope, $timeout, $uibModal, $location, focaCrearCobranzaService, + focaModalService, $filter, $cookies, focaSeguimientoService, focaBotoneraLateralService) { $scope.botonera = focaCrearCobranzaService.getBotonera(); @@ -34,6 +37,12 @@ angular.module('focaCrearCobranza') .controller('cobranzaController', $scope.usuario = data.data; }); + $timeout(function() { + focaBotoneraLateralService.showSalir(true); + focaBotoneraLateralService.showPausar(true); + focaBotoneraLateralService.showGuardar(true, $scope.crearCobranza); + }); + $scope.crearCobranza = function() { if(!$scope.cobranza.cliente) { focaModalService.alert('Ingrese Cliente'); diff --git a/src/views/cobranza.html b/src/views/cobranza.html index 7529b27..32dbfb4 100644 --- a/src/views/cobranza.html +++ b/src/views/cobranza.html @@ -1,4 +1,4 @@ -