Commit 67f80bb6f51fe4e6dd891796446889aded15d0b9
1 parent
03c151cf85
Exists in
master
articulos propertys
Showing
1 changed file
with
6 additions
and
2 deletions
Show diff stats
src/js/controller.js
... | ... | @@ -294,7 +294,6 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
294 | 294 | editCantidad: false, |
295 | 295 | editPrecio: false, |
296 | 296 | rubro: producto.CodRub, |
297 | - exentoUnitario: producto.precio, | |
298 | 297 | ivaUnitario: producto.IMPIVA, |
299 | 298 | impuestoInternoUnitario: producto.ImpInt, |
300 | 299 | impuestoInterno1Unitario: producto.ImpInt2, |
... | ... | @@ -302,8 +301,13 @@ angular.module('focaCrearNotaPedido') .controller('notaPedidoCtrl', |
302 | 301 | precioLista: producto.precio, |
303 | 302 | combustible: 1, |
304 | 303 | facturado: 0, |
305 | - idArticulo: producto.id | |
304 | + idArticulo: producto.id, | |
305 | + tasaIva: producto.tasaIVA | |
306 | 306 | }; |
307 | + | |
308 | + newArt.exentoUnitario = newArt.ivaUnitario ? 0 : producto.neto; | |
309 | + newArt.netoUnitario = newArt.ivaUnitario ? producto.neto : 0; | |
310 | + | |
307 | 311 | $scope.articuloACargar = newArt; |
308 | 312 | $scope.cargando = false; |
309 | 313 | }, function() { |