b2m-utils 0.0.266 → 0.0.268

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.
@@ -0,0 +1,5 @@
1
+ export declare enum ExportCteTypeEnum {
2
+ LIST = "list",
3
+ TOTALS = "totals"
4
+ }
5
+ export declare const EXPORT_CTE_TYPE_LABELS: Record<ExportCteTypeEnum, string>;
@@ -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';
@@ -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: totalToCalc === 0 ? totalToCalc : +totalFee.toFixed(2),
931
+ 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
Binary file