Commit f595f490e4e3e2df2dbfd27c9c8fdfbd62da9053

Authored by Eric
1 parent 6168be6786
Exists in master

fix properties art

Showing 1 changed file with 7 additions and 2 deletions   Show diff stats
src/js/controller.js
... ... @@ -441,15 +441,20 @@ angular.module('focaCrearRemito').controller('remitoController',
441 441 editCantidad: false,
442 442 editPrecio: false,
443 443 rubro: producto.CodRub,
444   - exentoUnitario: producto.precio,
445 444 ivaUnitario: producto.IMPIVA,
446 445 impuestoInternoUnitario: producto.ImpInt,
447 446 impuestoInterno1Unitario: producto.ImpInt2,
448 447 impuestoInterno2Unitario: producto.ImpInt3,
449 448 precioLista: producto.precio,
450 449 combustible: 1,
451   - facturado: 0
  450 + facturado: 0,
  451 + idArticulo: producto.id,
  452 + tasaIva: producto.tasaIVA
452 453 };
  454 +
  455 + newArt.exentoUnitario = newArt.ivaUnitario ? 0 : producto.neto;
  456 + newArt.netoUnitario = newArt.ivaUnitario ? producto.neto : 0;
  457 +
453 458 $scope.articuloACargar = newArt;
454 459 $scope.cargando = false;
455 460 }, function () {