b2m-utils 0.0.254 → 0.0.256

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.
@@ -486,8 +486,10 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
486
486
  case FeeCalculationTypeEnum.TOTAL_PERCENTAGE:
487
487
  if (allFees && Array.isArray(allFees) && (allFees === null || allFees === void 0 ? void 0 : allFees.length) > 0) {
488
488
  var filteredFees = allFees.filter(function (i) { var _a; return ((_a = i.fee) === null || _a === void 0 ? void 0 : _a.feeCalculationTypeId) !== FeeCalculationTypeEnum.TOTAL_PERCENTAGE; });
489
- var totalFromAllFees = filteredFees.map(function (it) {
490
- var result = calculateFee(it, cte, allFees, debug, allFeesForCalc);
489
+ var filteredFeesResults = filterSiblingFees(filteredFees.map(function (it) {
490
+ return calculateFee(it, cte, allFees, debug, allFeesForCalc);
491
+ }));
492
+ var totalFromAllFees = filteredFeesResults.map(function (result) {
491
493
  if (result === null || result === void 0 ? void 0 : result.totalToCalc) {
492
494
  return result.totalToCalc;
493
495
  }
Binary file