b2m-utils 0.0.265 → 0.0.267
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/enums/ExportCteTypeEnum.d.ts +5 -0
- package/build/enums/index.d.ts +1 -0
- package/build/index.esm.js +13 -2
- package/build/index.esm.js.gz +0 -0
- package/build/index.esm.js.map +1 -1
- package/build/index.js +13 -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
|
@@ -124,6 +124,17 @@ exports.ExportCteColumn = void 0;
|
|
|
124
124
|
ExportCteColumn["TAGS"] = "tags";
|
|
125
125
|
})(exports.ExportCteColumn || (exports.ExportCteColumn = {}));
|
|
126
126
|
|
|
127
|
+
var _a$1;
|
|
128
|
+
exports.ExportCteTypeEnum = void 0;
|
|
129
|
+
(function (ExportCteTypeEnum) {
|
|
130
|
+
ExportCteTypeEnum["LIST"] = "list";
|
|
131
|
+
ExportCteTypeEnum["TOTALS"] = "totals";
|
|
132
|
+
})(exports.ExportCteTypeEnum || (exports.ExportCteTypeEnum = {}));
|
|
133
|
+
var EXPORT_CTE_TYPE_LABELS = (_a$1 = {},
|
|
134
|
+
_a$1[exports.ExportCteTypeEnum.LIST] = 'Lista de CTEs',
|
|
135
|
+
_a$1[exports.ExportCteTypeEnum.TOTALS] = 'Relatório de Totais',
|
|
136
|
+
_a$1);
|
|
137
|
+
|
|
127
138
|
exports.FeeCalculationTypeEnum = void 0;
|
|
128
139
|
(function (FeeCalculationTypeEnum) {
|
|
129
140
|
FeeCalculationTypeEnum[FeeCalculationTypeEnum["FIXED"] = 1] = "FIXED";
|
|
@@ -921,7 +932,7 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
|
|
|
921
932
|
return {
|
|
922
933
|
totalFee: +totalFee.toFixed(2),
|
|
923
934
|
resultFee: resultFee,
|
|
924
|
-
totalToCalc: +totalFee.toFixed(2),
|
|
935
|
+
totalToCalc: totalToCalc === 0 ? totalToCalc : +totalFee.toFixed(2),
|
|
925
936
|
feeValue: ratecardLaneFee.value,
|
|
926
937
|
fee: fee_1,
|
|
927
938
|
};
|
|
@@ -7834,6 +7845,7 @@ var setFormattedDatesInObjects = function (objectFormat) { return __awaiter(void
|
|
|
7834
7845
|
}); };
|
|
7835
7846
|
|
|
7836
7847
|
exports.EXPORT_CTE_COLUMN_LABELS = EXPORT_CTE_COLUMN_LABELS;
|
|
7848
|
+
exports.EXPORT_CTE_TYPE_LABELS = EXPORT_CTE_TYPE_LABELS;
|
|
7837
7849
|
exports.applyRedeliveryMultiplier = applyRedeliveryMultiplier;
|
|
7838
7850
|
exports.calculateFee = calculateFee;
|
|
7839
7851
|
exports.calculateIcms = calculateIcms;
|
package/build/index.js.gz
CHANGED
|
Binary file
|