digicust_types 1.8.102 → 1.8.103
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.
@@ -101,7 +101,8 @@ export interface ExecutionStrategy {
|
|
101
101
|
addNegativeCodings?: boolean;
|
102
102
|
};
|
103
103
|
/**
|
104
|
-
* Custom formattings for the resulting description of line items.
|
104
|
+
* Custom formattings for the resulting description of line items. For more complex conditional formattings, use the JSONAta property instead.
|
105
|
+
*
|
105
106
|
* Possible variables are:
|
106
107
|
* - {line-item-description} - The normalized line-item-description from the document. Should always contain a value.
|
107
108
|
* - {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
|
@@ -121,6 +122,35 @@ export interface ExecutionStrategy {
|
|
121
122
|
* {enriched-description-short}
|
122
123
|
*/
|
123
124
|
descriptionFormatString?: string;
|
125
|
+
/**
|
126
|
+
* Custom formattings for the resulting description of line items as a JSONAta query. The result must be a string, not an object.
|
127
|
+
* The "simpler" descriptionFormatString will be ignored if this is set.
|
128
|
+
*
|
129
|
+
* The input JSON object looks like this:
|
130
|
+
*
|
131
|
+
* {
|
132
|
+
* "tariffNumberDescription": "Einrichtungen, Maschinen, Apparate und Geräte zur Kälteerzeugung",
|
133
|
+
* "lineItemDescription": "Orsiro Mission 2.5/9 PTCA-Stents ",
|
134
|
+
* "lineItemDescriptionShort": "Orsiro Mission PTCA-Stents ",
|
135
|
+
* "materialDescription": "PCTA-Stents",
|
136
|
+
* "enrichedDescription": "PCTA-Stents",
|
137
|
+
* "enrichedDescriptionShort": "PCTA-Stents",
|
138
|
+
* "preferMaterialMasterData": false,
|
139
|
+
* "materialMatched": true,
|
140
|
+
* "materialMatchedByTariffNumber": true,
|
141
|
+
* "materialMatchedByMaterialNr": false
|
142
|
+
* }
|
143
|
+
*
|
144
|
+
* 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
|
+
*
|
148
|
+
* Results:
|
149
|
+
* Example 1 result: "Einrichtungen, Maschinen, Apparate und Geräte zur Kälteerzeugung - PCTA-Stents"
|
150
|
+
* Example 2 result: "PCTA-Stents - Orsiro Mission 2.5/9 PTCA-Stents"
|
151
|
+
*
|
152
|
+
*/
|
153
|
+
descriptionFormatStringJsonAta?: string;
|
124
154
|
lineItemGrossWeightStrategy?: "default" | "forceToFirstLineItem";
|
125
155
|
};
|
126
156
|
dataValidation?: {
|
@@ -22,6 +22,10 @@ export interface CustomsTariffNumberNormalizationSettings {
|
|
22
22
|
itemDescriptionSource?: "description" | "altDescription";
|
23
23
|
hideOriginalItemDescription?: boolean;
|
24
24
|
preferMasterDataDescription?: boolean;
|
25
|
+
/**
|
26
|
+
* Specifies whether to shorten the item description if it is longer than 4 words.
|
27
|
+
*/
|
28
|
+
disableDescriptionShortening?: boolean;
|
25
29
|
/**
|
26
30
|
* Specifies the maximum length of the combined item description (prefix + tariff number description + suffix).
|
27
31
|
* If not set, defaults to 238 characters.
|