b2m-utils 0.0.189 → 0.0.191

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.
package/build/index.js CHANGED
@@ -150,6 +150,8 @@ exports.FeeEnum = void 0;
150
150
  FeeEnum[FeeEnum["TDA_MIN"] = 141] = "TDA_MIN";
151
151
  FeeEnum[FeeEnum["TDA_FREIGHT"] = 142] = "TDA_FREIGHT";
152
152
  FeeEnum[FeeEnum["COLLECT"] = 151] = "COLLECT";
153
+ FeeEnum[FeeEnum["COLLECT_PERCENTAGE_TOTAL"] = 152] = "COLLECT_PERCENTAGE_TOTAL";
154
+ FeeEnum[FeeEnum["COLLECT_REVERSE_PERCENTAGE_TOTAL"] = 153] = "COLLECT_REVERSE_PERCENTAGE_TOTAL";
153
155
  })(exports.FeeEnum || (exports.FeeEnum = {}));
154
156
 
155
157
  exports.FreightRegionEnum = void 0;
@@ -409,7 +411,7 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
409
411
  else {
410
412
  return 0;
411
413
  }
412
- });
414
+ }, 0);
413
415
  if (totalValueFromAllFees && !isNaN(+totalValueFromAllFees)) {
414
416
  var valueToMultiply = (1 - value);
415
417
  var total_1 = +totalValueFromAllFees * (valueToMultiply / 100);
@@ -7143,9 +7145,6 @@ var getLaneFromRatecard = function (cte) {
7143
7145
  var directLane = ratecard.RatecardLane.find(function (i) {
7144
7146
  return i.cityOriginId === cityOriginId && i.ufDestination === destinationUf && i.ratecardRegionId === destinationRatecardRegionId;
7145
7147
  });
7146
- console.log({
7147
- directLane: directLane,
7148
- });
7149
7148
  if (directLane) {
7150
7149
  return directLane;
7151
7150
  }
@@ -7158,9 +7157,6 @@ var getLaneFromRatecard = function (cte) {
7158
7157
  var reverseLane = ratecard.RatecardLane.find(function (i) {
7159
7158
  return i.cityOriginId === (cityDestination === null || cityDestination === void 0 ? void 0 : cityDestination.id) && i.ufDestination === originUf_1 && i.ratecardRegionId === originRatecardRegionId_1;
7160
7159
  });
7161
- console.log({
7162
- reverseLane: reverseLane,
7163
- });
7164
7160
  if (reverseLane) {
7165
7161
  return reverseLane;
7166
7162
  }
package/build/index.js.gz CHANGED
Binary file