WithholdingTax data structure
The WithholdingTax data structure is used to hold withholding tax data to be passed to SAP.
The WHTax array, which is based on this structure, may be populated in PostLinePairing if custom withholding taxes need to be passed using the standard SAP export. This overrides any automatic population of the withholding tax data that the system would otherwise perform, which is triggered by a value not equal to zero in the AmountWithholdingTax field.
The elements that are part of this structure are as follows.
Structure Element |
Type |
Description |
---|---|---|
SplitKey |
String |
The withholding tax split key used to group together multiple types of withholding tax. For a single entry, this must be set to 1. |
TaxType |
String |
The SAP withholding tax type. |
TaxBase |
String |
The SAP withholding tax base amount, such as the proportion of the invoice amount to which the withholding tax applies. |
TaxCode |
String |
The SAP withholding tax code. |
TaxAmount |
String |
The SAP withholding tax amount. |