consultame-sdk 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -8471,7 +8471,7 @@ var DetalleDocumento = class {
8471
8471
  };
8472
8472
  result.dBasGravIVA = 0;
8473
8473
  if (datos.idIva == 1 || datos.idIva == 4) {
8474
- result.dBasGravIVA = 100 * datos.precioUnitario * datos.ivaBase / (1e4 + datos.tasaIva * datos.ivaBase);
8474
+ result.dBasGravIVA = 100 * totalItem * datos.ivaBase / (1e4 + datos.tasaIva * datos.ivaBase);
8475
8475
  if (result.dBasGravIVA) {
8476
8476
  result.dBasGravIVA = parseFloat(result.dBasGravIVA.toFixed(8));
8477
8477
  }
@@ -9358,7 +9358,7 @@ var Documento = class {
9358
9358
  if (idTipoDocumento != 4 && idTipoDocumento != 7) {
9359
9359
  currentItem["gCamIVA"] = DetalleDocumento.generateDatosItemsOperacionIVA(
9360
9360
  currentDetalle,
9361
- totalDocumento
9361
+ currentItem["gValorItem"].gValorRestaItem.dTotOpeItem
9362
9362
  );
9363
9363
  }
9364
9364
  }