b2m-utils 0.0.206 → 0.0.208

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.
@@ -503,7 +503,7 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
503
503
  return ((_a = fee.fee) === null || _a === void 0 ? void 0 : _a.id) === ((_b = ratecardLaneFee.fee) === null || _b === void 0 ? void 0 : _b.id) &&
504
504
  fee.maxWeight &&
505
505
  (cte === null || cte === void 0 ? void 0 : cte.taxedWeight) &&
506
- fee.maxWeight < cte.taxedWeight;
506
+ +fee.maxWeight < +cte.taxedWeight;
507
507
  });
508
508
  // Ordenar pelo maxWeight do maior para o menor
509
509
  feesWithMaxWeight === null || feesWithMaxWeight === void 0 ? void 0 : feesWithMaxWeight.sort(function (a, b) { return b.maxWeight - a.maxWeight; });
@@ -512,6 +512,7 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
512
512
  console.log({
513
513
  feesWithMaxWeight: feesWithMaxWeight,
514
514
  highestIntervalFee: highestIntervalFee,
515
+ allFeesForCalc: allFeesForCalc,
515
516
  });
516
517
  if (highestIntervalFee) {
517
518
  // Calcula baseado na taxa do intervalo mais alto que tem maxWeight
Binary file