b2m-utils 0.0.275 → 0.0.276
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 +3 -3
- package/build/index.esm.js.gz +0 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +3 -3
- package/build/index.js.gz +0 -0
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -582,9 +582,9 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
|
|
|
582
582
|
switch (fee_1.feeCalculationTypeId) {
|
|
583
583
|
case exports.FeeCalculationTypeEnum.TOTAL_PERCENTAGE:
|
|
584
584
|
if (allFees && Array.isArray(allFees) && (allFees === null || allFees === void 0 ? void 0 : allFees.length) > 0) {
|
|
585
|
-
var
|
|
586
|
-
var filteredFeesResults = filterSiblingFees(
|
|
587
|
-
return calculateFee(it, cte,
|
|
585
|
+
var filteredFees_1 = allFees.filter(function (i) { var _a, _b; return ((_a = i.fee) === null || _a === void 0 ? void 0 : _a.feeCalculationTypeId) !== exports.FeeCalculationTypeEnum.TOTAL_PERCENTAGE && ((_b = i.fee) === null || _b === void 0 ? void 0 : _b.parentId) !== fee_1.parentId; });
|
|
586
|
+
var filteredFeesResults = filterSiblingFees(filteredFees_1.map(function (it) {
|
|
587
|
+
return calculateFee(it, cte, filteredFees_1, debug, allFeesForCalc);
|
|
588
588
|
}));
|
|
589
589
|
var totalFromAllFees = filteredFeesResults.map(function (result) {
|
|
590
590
|
if (result === null || result === void 0 ? void 0 : result.totalToCalc) {
|
package/build/index.js.gz
CHANGED
|
Binary file
|