diff --git a/src/js/controller.js b/src/js/controller.js index e8295cd..e8197a9 100644 --- a/src/js/controller.js +++ b/src/js/controller.js @@ -1,10 +1,10 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', [ '$scope', '$uibModal', '$location', '$filter', 'crearNotaPedidoService', - 'focaModalService', 'focaSeguimientoService', 'notaPedidoBusinessService', '$rootScope', + 'focaModalService', 'focaSeguimientoService', 'notaPedidoBusinessService', function( $scope, $uibModal, $location, $filter, crearNotaPedidoService, focaModalService, - focaSeguimientoService, notaPedidoBusinessService, $rootScope + focaSeguimientoService, notaPedidoBusinessService ) { $scope.botonera = [ {texto: 'Vendedor', accion: function() {$scope.seleccionarVendedor();}}, @@ -245,7 +245,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', item: $scope.articulosTabla.length + 1, nombre: producto.descripcion, precio: parseFloat(producto.precio.toFixed(4)), - costoUnitario: producto.costo, + precioUnitario: producto.costo, editCantidad: false, editPrecio: false };