b2m-utils 0.0.222 → 0.0.224

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.
@@ -395,8 +395,8 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
395
395
  }, 0);
396
396
  if (totalValueFromAllFees && !isNaN(+totalValueFromAllFees)) {
397
397
  var icmsValue = (cte.icmsIncidence !== undefined && cte.icmsIncidence !== null && !isNaN(+cte.icmsIncidence))
398
- ? cte.icmsIncidence
399
- : value;
398
+ ? +(cte.icmsIncidence) / 100
399
+ : +value;
400
400
  var valueToDivide = (1 - icmsValue).toFixed(2);
401
401
  var firstTotal = +totalValueFromAllFees / +valueToDivide;
402
402
  var total = +firstTotal * +icmsValue;
Binary file