b2m-utils 0.0.236 → 0.0.237
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.esm.js +1 -1
- package/build/index.esm.js.gz +0 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +1 -1
- package/build/index.js.gz +0 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.esm.js
CHANGED
|
@@ -664,7 +664,7 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
|
|
|
664
664
|
var feesWithMaxKm = (_h = lane === null || lane === void 0 ? void 0 : lane.RatecardLaneFee) === null || _h === void 0 ? void 0 : _h.filter(function (fee) {
|
|
665
665
|
var _a, _b;
|
|
666
666
|
return ((_a = fee.fee) === null || _a === void 0 ? void 0 : _a.id) === ((_b = ratecardLaneFee.fee) === null || _b === void 0 ? void 0 : _b.id) &&
|
|
667
|
-
|
|
667
|
+
(!fee.vehicleTypeId || fee.vehicleTypeId === cte.vehicleTypeId) &&
|
|
668
668
|
fee.maxKm &&
|
|
669
669
|
(cte === null || cte === void 0 ? void 0 : cte.distance) &&
|
|
670
670
|
+fee.maxKm < +cte.distance;
|
package/build/index.esm.js.gz
CHANGED
|
Binary file
|