Interface CustomsTariffNumberNormalizationSettings

Settings for the extraction and normalization of customs tariff numbers

interface CustomsTariffNumberNormalizationSettings {
    autoFixTariffNumbers?: boolean;
    combineWithOriginalItemDescription?: boolean;
    combinedMaxDescriptionLength?: number;
    complianceCheck?: {
        active?: boolean;
    };
    considerCustomsTariffNumberFromInvoiceHead?: boolean;
    customsTariffNumberLength?: number;
    disableLineItemDescriptionShortening?: boolean;
    hideOriginalItemDescription?: boolean;
    ignoreCustomsTariffNumbersFromInvoice?: boolean;
    itemDescriptionSource?: "description" | "altDescription";
    preferMasterDataDescription?: boolean;
    tariffClassification?: {
        active?: boolean;
        mode?: ClassificationTypes;
    };
    useAsItemDescription?: boolean;
}

Properties

autoFixTariffNumbers?: boolean

Specifies whether to take the the first valid digits and consier fallback sub-chapters

combineWithOriginalItemDescription?: boolean

Specifies whether to combine the original item description with the tariff number description. Only applicable if useAsItemDescription is true.

combinedMaxDescriptionLength?: number

Specifies the maximum length of the combined item description (prefix + tariff number description + suffix). If not set, defaults to 238 characters.

complianceCheck?: {
    active?: boolean;
}

Type declaration

  • Optional active?: boolean
considerCustomsTariffNumberFromInvoiceHead?: boolean

Specifies whether to consider customs tariff number from invoice head/the general customs tariff number

customsTariffNumberLength?: number

Specifies the length in which customs tariff numbers are considered. E.g. 6 would consider only the first 6 digits.

disableLineItemDescriptionShortening?: boolean

Specifies whether to shorten the line item description if it is longer than 4 words.

hideOriginalItemDescription?: boolean
ignoreCustomsTariffNumbersFromInvoice?: boolean

Specifies whether to ignore customs tariff numbers from invoices. E.g. true would not consider extracted customs tariff numbers

itemDescriptionSource?: "description" | "altDescription"

With german tariff numbers, this usually means EZT=description and zolltarifnummern.de=altDescription

preferMasterDataDescription?: boolean
tariffClassification?: {
    active?: boolean;
    mode?: ClassificationTypes;
}

Type declaration

useAsItemDescription?: boolean

Specifies whether to take the tariff number description for item description