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/enums/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ export * from './DocumentTypeEnum';
|
|
|
9
9
|
export * from './DomainConfigurationEnum';
|
|
10
10
|
export * from './DomainTypeEnum';
|
|
11
11
|
export * from './ExportCteColumnEnum';
|
|
12
|
+
export * from './ExportCteTypeEnum';
|
|
12
13
|
export * from './FeeCalculationTypeEnum';
|
|
13
14
|
export * from './FeeCategoryEnum';
|
|
14
15
|
export * from './FeeEnum';
|
package/build/index.esm.js
CHANGED
|
@@ -120,6 +120,17 @@ var ExportCteColumn;
|
|
|
120
120
|
ExportCteColumn["TAGS"] = "tags";
|
|
121
121
|
})(ExportCteColumn || (ExportCteColumn = {}));
|
|
122
122
|
|
|
123
|
+
var _a$1;
|
|
124
|
+
var ExportCteTypeEnum;
|
|
125
|
+
(function (ExportCteTypeEnum) {
|
|
126
|
+
ExportCteTypeEnum["LIST"] = "list";
|
|
127
|
+
ExportCteTypeEnum["TOTALS"] = "totals";
|
|
128
|
+
})(ExportCteTypeEnum || (ExportCteTypeEnum = {}));
|
|
129
|
+
var EXPORT_CTE_TYPE_LABELS = (_a$1 = {},
|
|
130
|
+
_a$1[ExportCteTypeEnum.LIST] = 'Lista de CTEs',
|
|
131
|
+
_a$1[ExportCteTypeEnum.TOTALS] = 'Relatório de Totais',
|
|
132
|
+
_a$1);
|
|
133
|
+
|
|
123
134
|
var FeeCalculationTypeEnum;
|
|
124
135
|
(function (FeeCalculationTypeEnum) {
|
|
125
136
|
FeeCalculationTypeEnum[FeeCalculationTypeEnum["FIXED"] = 1] = "FIXED";
|
|
@@ -917,7 +928,7 @@ var calculateFee = function (ratecardLaneFee, cte, allFees, debug, allFeesForCal
|
|
|
917
928
|
return {
|
|
918
929
|
totalFee: +totalFee.toFixed(2),
|
|
919
930
|
resultFee: resultFee,
|
|
920
|
-
totalToCalc: +totalFee.toFixed(2),
|
|
931
|
+
totalToCalc: totalToCalc === 0 ? totalToCalc : +totalFee.toFixed(2),
|
|
921
932
|
feeValue: ratecardLaneFee.value,
|
|
922
933
|
fee: fee_1,
|
|
923
934
|
};
|
|
@@ -7829,5 +7840,5 @@ var setFormattedDatesInObjects = function (objectFormat) { return __awaiter(void
|
|
|
7829
7840
|
});
|
|
7830
7841
|
}); };
|
|
7831
7842
|
|
|
7832
|
-
export { ApplicationColumnNameEnum, ApplicationEnum, CarrierDocumentConfigTypeKeyEnum, CountryEnum, CteStatusEnum, CteVehicleTypeEnum, CurrencyEnum, DocumentTypeEnum, DomainConfigurationEnum, DomainTypeEnum, EXPORT_CTE_COLUMN_LABELS, ExportCteColumn, FeeCalculationTypeEnum, FeeCategoryEnum, FeeEnum, FreightRegionEnum, ImapHostsEnum, InputTypeEnum, ModalEnum, NotificationTypeEnum, PermissionEnum, RatecardConditionalFeeTypeEnum, RatecardFeeConfigKeyEnum, RatecardFeeConfigTypeEnum, RatecardModalEnum, SlaRegionEnum, SpotStatusEnum, TrackProcessProviderTypeEnum, applyRedeliveryMultiplier, calculateFee, calculateIcms, convertNumberToCurrency, filterSiblingFees, formatDateString, getAllFeesForCalculation, getAuditTotalFromCte, getConfigurationFromDomain, getContractFromFreight, getContractRouteFromFreight, getCookies, getCteDateRange, getCteLane, getCteLaneFeesTotal, getCtesFeesResult, getDataFromToken, getFilteredFeesToAudit, getFormattedFreightPlaceName, getLaneFeesToCalc, getLaneFromRatecard, getNormalizedCityName, getRatecardFromCte, getRouteDeliveryTimeFromFreight, getRouteOnTimeFromFreight, normalizeString, setFormattedDatesInObjects, verifyConditionalFee, verifyDefaultFees };
|
|
7843
|
+
export { ApplicationColumnNameEnum, ApplicationEnum, CarrierDocumentConfigTypeKeyEnum, CountryEnum, CteStatusEnum, CteVehicleTypeEnum, CurrencyEnum, DocumentTypeEnum, DomainConfigurationEnum, DomainTypeEnum, EXPORT_CTE_COLUMN_LABELS, EXPORT_CTE_TYPE_LABELS, ExportCteColumn, ExportCteTypeEnum, FeeCalculationTypeEnum, FeeCategoryEnum, FeeEnum, FreightRegionEnum, ImapHostsEnum, InputTypeEnum, ModalEnum, NotificationTypeEnum, PermissionEnum, RatecardConditionalFeeTypeEnum, RatecardFeeConfigKeyEnum, RatecardFeeConfigTypeEnum, RatecardModalEnum, SlaRegionEnum, SpotStatusEnum, TrackProcessProviderTypeEnum, applyRedeliveryMultiplier, calculateFee, calculateIcms, convertNumberToCurrency, filterSiblingFees, formatDateString, getAllFeesForCalculation, getAuditTotalFromCte, getConfigurationFromDomain, getContractFromFreight, getContractRouteFromFreight, getCookies, getCteDateRange, getCteLane, getCteLaneFeesTotal, getCtesFeesResult, getDataFromToken, getFilteredFeesToAudit, getFormattedFreightPlaceName, getLaneFeesToCalc, getLaneFromRatecard, getNormalizedCityName, getRatecardFromCte, getRouteDeliveryTimeFromFreight, getRouteOnTimeFromFreight, normalizeString, setFormattedDatesInObjects, verifyConditionalFee, verifyDefaultFees };
|
|
7833
7844
|
//# sourceMappingURL=index.esm.js.map
|
package/build/index.esm.js.gz
CHANGED
|
Binary file
|