consultame-sdk 1.1.0 → 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.mjs CHANGED
@@ -8445,7 +8445,7 @@ var DetalleDocumento = class {
8445
8445
  };
8446
8446
  result.dBasGravIVA = 0;
8447
8447
  if (datos.idIva == 1 || datos.idIva == 4) {
8448
- result.dBasGravIVA = 100 * datos.precioUnitario * datos.ivaBase / (1e4 + datos.tasaIva * datos.ivaBase);
8448
+ result.dBasGravIVA = 100 * totalItem * datos.ivaBase / (1e4 + datos.tasaIva * datos.ivaBase);
8449
8449
  if (result.dBasGravIVA) {
8450
8450
  result.dBasGravIVA = parseFloat(result.dBasGravIVA.toFixed(8));
8451
8451
  }
@@ -9332,7 +9332,7 @@ var Documento = class {
9332
9332
  if (idTipoDocumento != 4 && idTipoDocumento != 7) {
9333
9333
  currentItem["gCamIVA"] = DetalleDocumento.generateDatosItemsOperacionIVA(
9334
9334
  currentDetalle,
9335
- totalDocumento
9335
+ currentItem["gValorItem"].gValorRestaItem.dTotOpeItem
9336
9336
  );
9337
9337
  }
9338
9338
  }