digicust_types 1.8.94 → 1.8.96
Sign up to get free protection for your applications and to get access to all the features.
@@ -100,6 +100,27 @@ export interface ExecutionStrategy {
|
|
100
100
|
documentCodeEnrichment?: {
|
101
101
|
addNegativeCodings?: boolean;
|
102
102
|
};
|
103
|
+
/**
|
104
|
+
* Custom formattings for the resulting description of line items.
|
105
|
+
* Possible variables are:
|
106
|
+
* - {line-item-description} - The normalized line-item-description from the document. Should always contain a value.
|
107
|
+
* - {line-item-description-short} - The GPT shortened line-item-description. Shortening is only applied if the line-item-description contains more than 4 words, otherwise it will be the original line-item-description
|
108
|
+
* - {material-description} - The material-description from the matched material masterdata (either by material-nr or tariff-nr). Empty if no material is matched, or matching is disabled.
|
109
|
+
* - {enriched-description} - Contains the material-description if it is not empty, or the line-item-description as a fallback value.
|
110
|
+
* - {enriched-description-short} - Contains the material-description if it is not empty, or the shortened-line-item-description as a fallback value.
|
111
|
+
* - {tariff-number-description} - The description of the matched tariff number. If no tariff number is matched or matching is disabled this will be empty.
|
112
|
+
*
|
113
|
+
* All these variables can be combined with an optional separator to include after the variable. This separator will only be printed if the variable is not empty.
|
114
|
+
* Format: {variable}[separator]
|
115
|
+
*
|
116
|
+
* Examples:
|
117
|
+
* {tariff-number-description}[ - ]{enriched-description}
|
118
|
+
* {tariff-number-description}[ - ]{enriched-description-short}
|
119
|
+
* {tariff-number-description}[ - ]{line-item-description}
|
120
|
+
* {material-description}[ - ]{line-item-description}
|
121
|
+
* {enriched-description-short}
|
122
|
+
*/
|
123
|
+
descriptionFormatString?: string;
|
103
124
|
lineItemGrossWeightStrategy?: "default" | "forceToFirstLineItem";
|
104
125
|
};
|
105
126
|
dataValidation?: {
|
@@ -22,6 +22,11 @@ export interface CustomsTariffNumberNormalizationSettings {
|
|
22
22
|
itemDescriptionSource?: "description" | "altDescription";
|
23
23
|
hideOriginalItemDescription?: boolean;
|
24
24
|
preferMasterDataDescription?: boolean;
|
25
|
+
/**
|
26
|
+
* Specifies the maximum length of the combined item description (prefix + tariff number description + suffix).
|
27
|
+
* If not set, defaults to 238 characters.
|
28
|
+
*/
|
29
|
+
combinedMaxDescriptionLength?: number;
|
25
30
|
/**
|
26
31
|
* Specifies whether to combine the original item description with the tariff number description.
|
27
32
|
* Only applicable if useAsItemDescription is true.
|