Commit 879a4170be0391a32410a2c8ee293e17fdbc0203
Exists in
master
Merge branch 'master' into 'master'
renombrado nombre precioUnitario para mejorar bd See merge request modulos-npm/foca-crear-nota-pedido!71
Showing
1 changed file
Show diff stats
src/js/controller.js
1 | 1 | angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
2 | 2 | [ |
3 | 3 | '$scope', '$uibModal', '$location', '$filter', 'crearNotaPedidoService', |
4 | - 'focaModalService', 'focaSeguimientoService', 'notaPedidoBusinessService', '$rootScope', | |
4 | + 'focaModalService', 'focaSeguimientoService', 'notaPedidoBusinessService', | |
5 | 5 | function( |
6 | 6 | $scope, $uibModal, $location, $filter, crearNotaPedidoService, focaModalService, |
7 | - focaSeguimientoService, notaPedidoBusinessService, $rootScope | |
7 | + focaSeguimientoService, notaPedidoBusinessService | |
8 | 8 | ) { |
9 | 9 | $scope.botonera = [ |
10 | 10 | {texto: 'Vendedor', accion: function() {$scope.seleccionarVendedor();}}, |
... | ... | @@ -245,7 +245,7 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
245 | 245 | item: $scope.articulosTabla.length + 1, |
246 | 246 | nombre: producto.descripcion, |
247 | 247 | precio: parseFloat(producto.precio.toFixed(4)), |
248 | - costoUnitario: producto.costo, | |
248 | + precioUnitario: producto.costo, | |
249 | 249 | editCantidad: false, |
250 | 250 | editPrecio: false |
251 | 251 | }; |