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