Commit 530211643f8b5a4c5ec545f72779e8e6f6712de2
1 parent
abe82c2928
Exists in
master
item iva
Showing
1 changed file
with
3 additions
and
3 deletions
Show diff stats
debo/cuerpoDebo.js
... | ... | @@ -15,7 +15,7 @@ module.exports = function(comprobante, afipTablas, entities, item) { |
15 | 15 | CAN: item.cantidad, // [money] NOT NULL, CANTIDAD DEL ITEM |
16 | 16 | PUN: item.precioUnitario, // [decimal](20, 8) NOT NULL PRECIO UNITARIO DEL PRODUCTO ITEM |
17 | 17 | IMI: item.impuestoInterno ? item.impuestoInterno.importeImpuesto : 0, // [money] NOT NULL, IMPORTE IMPUESTOS INTERNOS DEL ITEM |
18 | - IVA: comprobante.itemsFactura.alicuotaIVAAplicable ? ((item.precioUnitario * item.cantidad) * comprobante.itemsFactura.alicuotaIVAAplicable) / 100 : 0, | |
18 | + IVA: item.alicuotaIVAAplicable ? ((item.precioUnitario * item.cantidad) * comprobante.itemsFactura.alicuotaIVAAplicable) / 100 : 0, | |
19 | 19 | PUT: item.precioUnitario, // [money] NOT NULL, IGUAL AL PUN |
20 | 20 | LEG: 0, // [int] NOT NULL, FIJO 0 |
21 | 21 | CMF: 0, // [int] NOT NULL, FIJO 0 |
... | ... | @@ -34,9 +34,9 @@ module.exports = function(comprobante, afipTablas, entities, item) { |
34 | 34 | C_HD2: '', // [varchar](1) NOT NULL, FIJO '' VACIO NO NULO |
35 | 35 | COMISION: 0, // [money] NOT NULL, FIJO 0 |
36 | 36 | LIQ_VTA: '', // [varchar](20) NOT NULL, FIJO '' VACIO NO NULO |
37 | - COSTO_PMOV: comprobante.itemsFactura.precioUnitario, // [money] NOT NULL, IGUAL AL PUN | |
37 | + COSTO_PMOV: item.precioUnitario, // [money] NOT NULL, IGUAL AL PUN | |
38 | 38 | SAL_ITEM: 0, // [money] NOT NULL, fijo 0 es el que se llenara al mostrar en la tablet o telefono para que llene operador |
39 | - TASIVA: comprobante.itemsFactura.alicuotaIVAAplicable, // [money] NOT NULL, TASA DE IVA DEL ITEM = 21.00 / 10.50 / ETC. | |
39 | + TASIVA: item.alicuotaIVAAplicable, // [money] NOT NULL, TASA DE IVA DEL ITEM = 21.00 / 10.50 / ETC. | |
40 | 40 | gln: comprobante.identificaxSucursalReceptorFactura.glnSucursal, //gln sucursal |
41 | 41 | codigoBarras: item.codigoUPCEAN13 |
42 | 42 | }; |