Commit a7c17c1b8c057e89cf614de28cbb192996102dd2
1 parent
530211643f
Exists in
master
fix iva
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
db/index.js
| ... | ... | @@ -28,8 +28,8 @@ module.exports = function(comprobante, nameFile) { |
| 28 | 28 | if(err) console.log(err); |
| 29 | 29 | console.log('COMPROBANTE GUARDADO CON ÉXITO'); |
| 30 | 30 | }); |
| 31 | - }).catch(function() { | |
| 32 | - | |
| 31 | + }).catch(function(e) { | |
| 32 | + console.log(e); | |
| 33 | 33 | console.log('ERROR AL GUARDAR EL COMPROBANTE'); |
| 34 | 34 | }); |
| 35 | 35 | } |
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: item.alicuotaIVAAplicable ? ((item.precioUnitario * item.cantidad) * comprobante.itemsFactura.alicuotaIVAAplicable) / 100 : 0, | |
| 18 | + IVA: item.alicuotaIVAAplicable ? ((item.precioUnitario * item.cantidad) * item.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 |