Commit 14e638d60ce855839d11678b7842e647f13656e2

Authored by Eric Fernandez
Exists in master

Merge branch 'master' into 'master'

Master(efernandez)

See merge request !16
... ... @@ -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 }
... ... @@ -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