diff --git a/src/js/controller.js b/src/js/controller.js index 394d6ca..9c19205 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -12,6 +12,7 @@ angular.module('focaCrearFactura').controller('facturaController', [ $scope.tmpCantidad = Number; $scope.tmpPrecio = Number; $scope.botonera = crearFacturaService.getBotonera(); + $scope.botoneraProductos = []; $scope.isNumber = angular.isNumber; $scope.datepickerAbierto = false; $scope.show = false; @@ -416,18 +417,22 @@ angular.module('focaCrearFactura').controller('facturaController', [ function getProductosByPlanilla(numeroPlanilla) { crearFacturaService.getProductosByPlanilla(numeroPlanilla).then(function (res) { - + $scope.botoneraProductos.length = 0; res.data.forEach(function (producto) { - $scope.botonera.push({ + $scope.botoneraProductos.push({ label: producto.DetArt, - image: 'productos.png' + image: 'buscarProductos.png' }); crearFuncionesProductos(producto); }); + $scope.botoneraProductos.push({ + label: 'BusquedaProductos', + image: 'buscarProductos.png' + }); }); } diff --git a/src/views/factura.html b/src/views/factura.html index 8ab8423..8eb91a2 100644 --- a/src/views/factura.html +++ b/src/views/factura.html @@ -17,7 +17,21 @@