From a1c0bdd94e08055efe447a0fe9a2279bbf9c97cc Mon Sep 17 00:00:00 2001 From: Eric Fernandez Date: Thu, 8 Aug 2019 10:37:19 -0300 Subject: [PATCH] iva con precio unitario --- debo/cuerpoDebo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debo/cuerpoDebo.js b/debo/cuerpoDebo.js index 7086986..a01308a 100644 --- a/debo/cuerpoDebo.js +++ b/debo/cuerpoDebo.js @@ -15,7 +15,7 @@ module.exports = function(comprobante, afipTablas, entities, item) { CAN: item.cantidad, // [money] NOT NULL, CANTIDAD DEL ITEM PUN: item.precioUnitario, // [decimal](20, 8) NOT NULL PRECIO UNITARIO DEL PRODUCTO ITEM IMI: item.impuestoInterno ? item.impuestoInterno.importeImpuesto : 0, // [money] NOT NULL, IMPORTE IMPUESTOS INTERNOS DEL ITEM - IVA: item.alicuotaIVAAplicable ? ((item.precioUnitario * item.cantidad) * item.alicuotaIVAAplicable) / 100 : 0, + IVA: item.alicuotaIVAAplicable ? (item.precioUnitario * item.alicuotaIVAAplicable) / 100 : 0, PUT: item.precioUnitario, // [money] NOT NULL, IGUAL AL PUN LEG: 0, // [int] NOT NULL, FIJO 0 CMF: 0, // [int] NOT NULL, FIJO 0 -- 1.9.1