b2m-utils 0.0.194 → 0.0.195
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 +2 -2
- package/build/index.esm.js.gz +0 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +2 -2
- 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
|
@@ -438,8 +438,8 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
|
|
|
438
438
|
validValues: totalFromAllFees.filter(function (i) { return !isNaN(+i) && +i > 0; })
|
|
439
439
|
});
|
|
440
440
|
if (totalValueFromAllFees && !isNaN(+totalValueFromAllFees)) {
|
|
441
|
-
var valueToMultiply = (
|
|
442
|
-
var total_1 = +totalValueFromAllFees *
|
|
441
|
+
var valueToMultiply = (+value / 100);
|
|
442
|
+
var total_1 = +totalValueFromAllFees * valueToMultiply;
|
|
443
443
|
console.log('🧮 TOTAL_PERCENTAGE - Cálculo final:', {
|
|
444
444
|
totalValueFromAllFees: totalValueFromAllFees,
|
|
445
445
|
valueToMultiply: valueToMultiply,
|
package/build/index.esm.js.gz
CHANGED
|
Binary file
|