b2m-utils 0.0.203 → 0.0.205
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.js
CHANGED
|
@@ -375,8 +375,8 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
|
|
|
375
375
|
var firstTotal = +totalValueFromAllFees / +valueToDivide;
|
|
376
376
|
var total = +firstTotal * +value;
|
|
377
377
|
var totalValueFromAllFeesCurrency = convertNumberToCurrency(+totalValueFromAllFees, 'pt-br');
|
|
378
|
-
totalFee = total;
|
|
379
378
|
var truncatedTo3Decimals = Math.floor(total * 1000) / 1000;
|
|
379
|
+
totalFee = Number(truncatedTo3Decimals.toFixed(2));
|
|
380
380
|
totalToCalc = Number(truncatedTo3Decimals.toFixed(2));
|
|
381
381
|
var resultCurrency = (+totalToCalc).toLocaleString('pt-BR', {
|
|
382
382
|
style: 'currency',
|
package/build/index.js.gz
CHANGED
|
Binary file
|