b2m-utils 0.0.264 → 0.0.265

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.
@@ -887,7 +887,7 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
887
887
  }
888
888
  }
889
889
  // totalToCalc = totalFee;
890
- totalToCalc = Math.floor(+totalFee * 100) / 100;
890
+ // totalToCalc = Math.round(+totalFee * 100) / 100;
891
891
  if (fee_1.parentId) {
892
892
  var siblingFees = allFees === null || allFees === void 0 ? void 0 : allFees.filter(function (i) { var _a, _b; return ((_a = i.fee) === null || _a === void 0 ? void 0 : _a.parentId) === fee_1.parentId && ((_b = i.fee) === null || _b === void 0 ? void 0 : _b.id) !== fee_1.id; });
893
893
  if (siblingFees && (siblingFees === null || siblingFees === void 0 ? void 0 : siblingFees.length) > 0) {
@@ -917,7 +917,7 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
917
917
  return {
918
918
  totalFee: +totalFee.toFixed(2),
919
919
  resultFee: resultFee,
920
- totalToCalc: totalToCalc,
920
+ totalToCalc: +totalFee.toFixed(2),
921
921
  feeValue: ratecardLaneFee.value,
922
922
  fee: fee_1,
923
923
  };
Binary file