b2m-utils 0.0.279 → 0.0.280

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.
@@ -1357,6 +1357,12 @@ var getCtesFeesResult = function (feesToCalc, cte, allFeesForCalc) {
1357
1357
  var icmsRate = (cte.icmsIncidence !== undefined && cte.icmsIncidence !== null && !isNaN(+cte.icmsIncidence))
1358
1358
  ? +(cte.icmsIncidence) / 100
1359
1359
  : icmsFee.value || 0;
1360
+ console.log('DEBUG ICMS getCtesFeesResult:', {
1361
+ valuesForIcms: valuesForIcms,
1362
+ icmsRate: icmsRate,
1363
+ totalBeforeIcms: valuesForIcms.reduce(function (sum, val) { return sum + val; }, 0),
1364
+ results: results.map(function (r) { return ({ feeId: r.feeId, total: r.total }); })
1365
+ });
1360
1366
  // Usar calculateIcms diretamente
1361
1367
  var icmsCalculation = calculateIcms(valuesForIcms, icmsRate);
1362
1368
  if (icmsCalculation.isValid && !isNaN(+icmsCalculation.total)) {
Binary file