From cd5efe0953c01ff8deb6a5f546443ef324fc797e Mon Sep 17 00:00:00 2001 From: mpuebla Date: Thu, 25 Jul 2019 15:29:36 -0300 Subject: [PATCH] Agregada validacion para busqueda de productos. --- src/js/controller.js | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/js/controller.js b/src/js/controller.js index 373fb60..ce15589 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -4,8 +4,7 @@ angular.module('focaCrearFactura').controller('facturaController', [ '$localStorage', 'APP', 'focaLoginService', function ( $scope, $uibModal, $location, $filter, crearFacturaService, $timeout, focaModalService, - crearRemitoService, $rootScope, focaBotoneraLateralService, $localStorage, APP, loginServ) - { + crearRemitoService, $rootScope, focaBotoneraLateralService, $localStorage, APP, loginServ) { config(); @@ -466,15 +465,19 @@ angular.module('focaCrearFactura').controller('facturaController', [ image: producto.nombreImagen, imageDefault: 'productoDefault.png' }); - - + crearFuncionesProductos(producto); - }); }); } $scope.seleccionarBusquedaProductos = function () { + + if (angular.equals({}, $scope.factura.vendedor)) { + + focaModalService.alert('Seleccione Vendedor'); + return false; + } var modalInstance = $uibModal.open( { -- 1.9.1