digicust_types 1.8.103 → 1.8.105
Sign up to get free protection for your applications and to get access to all the features.
@@ -134,21 +134,47 @@ export interface ExecutionStrategy {
|
|
134
134
|
* "lineItemDescriptionShort": "Orsiro Mission PTCA-Stents ",
|
135
135
|
* "materialDescription": "PCTA-Stents",
|
136
136
|
* "enrichedDescription": "PCTA-Stents",
|
137
|
-
* "enrichedDescriptionShort": "
|
137
|
+
* "enrichedDescriptionShort": "Stents",
|
138
138
|
* "preferMaterialMasterData": false,
|
139
139
|
* "materialMatched": true,
|
140
|
+
* "useCustomsTariffNumberDescription": true,
|
141
|
+
* "useLineItemDescriptionShortening": true,
|
140
142
|
* "materialMatchedByTariffNumber": true,
|
141
143
|
* "materialMatchedByMaterialNr": false
|
142
144
|
* }
|
143
145
|
*
|
144
146
|
* Examples:
|
145
|
-
* (preferMaterialMasterData = false or materialMatched = false) and $exists(tariffNumberDescription) and $string(tariffNumberDescription) != "" ? tariffNumberDescription & " - " & enrichedDescription : enrichedDescription
|
146
|
-
* $exists(materialDescription) and $string(materialDescription) != "" ? materialDescription & ' - ' & lineItemDescription : lineItemDescription
|
147
147
|
*
|
148
|
-
*
|
149
|
-
*
|
150
|
-
*
|
148
|
+
* - Built-In Standard formatting depending on various state variables:
|
149
|
+
* useCustomsTariffNumberDescription
|
150
|
+
* and (
|
151
|
+
* preferMaterialMasterData = false
|
152
|
+
* or materialMatched = false
|
153
|
+
* )
|
154
|
+
* and $exists(tariffNumberDescription)
|
155
|
+
* and $string(tariffNumberDescription) != ""
|
156
|
+
* ? tariffNumberDescription & " - " & (
|
157
|
+
* useLineItemDescriptionShortening = true
|
158
|
+
* and materialMatched = false
|
159
|
+
* ? (($exists(lineItemDescriptionShort) and $string(lineItemDescriptionShort) != "") ? lineItemDescriptionShort: lineItemDescription)
|
160
|
+
* : (
|
161
|
+
* materialMatched = true
|
162
|
+
* ? materialDescription
|
163
|
+
* : (
|
164
|
+
* useLineItemDescriptionShortening = true
|
165
|
+
* ? lineItemDescriptionShort
|
166
|
+
* : lineItemDescription
|
167
|
+
* )
|
168
|
+
* )
|
169
|
+
* )
|
170
|
+
* : enrichedDescription
|
171
|
+
*
|
172
|
+
* Example Result with JSON input from above: "Einrichtungen, Maschinen, Apparate und Geräte zur Kälteerzeugung - PCTA-Stents"
|
173
|
+
*
|
174
|
+
* - Static formatting for customer preferring combined material and line-item descriptions:
|
175
|
+
* $exists(materialDescription) and $string(materialDescription) != "" ? materialDescription & ' - ' & lineItemDescription : lineItemDescription
|
151
176
|
*
|
177
|
+
* Example Result with JSON input from above: "PCTA-Stents - Orsiro Mission 2.5/9 PTCA-Stents"
|
152
178
|
*/
|
153
179
|
descriptionFormatStringJsonAta?: string;
|
154
180
|
lineItemGrossWeightStrategy?: "default" | "forceToFirstLineItem";
|
@@ -23,9 +23,9 @@ export interface CustomsTariffNumberNormalizationSettings {
|
|
23
23
|
hideOriginalItemDescription?: boolean;
|
24
24
|
preferMasterDataDescription?: boolean;
|
25
25
|
/**
|
26
|
-
* Specifies whether to shorten the item description if it is longer than 4 words.
|
26
|
+
* Specifies whether to shorten the line item description if it is longer than 4 words.
|
27
27
|
*/
|
28
|
-
|
28
|
+
disableLineItemDescriptionShortening?: boolean;
|
29
29
|
/**
|
30
30
|
* Specifies the maximum length of the combined item description (prefix + tariff number description + suffix).
|
31
31
|
* If not set, defaults to 238 characters.
|