About the Avalara VAT Reporting Mappings
Before your financial data is sent to Avalara VAT Reporting, it is converted to the appropriate XML format using the predefined mappings. The mappings are defined in a Foundations Configuration Item custom metadata type record named Avalara VAT Reporting Integration.
The following table details the fields available on the Avalara VAT Reporting Integration record. For more information on the Foundations Configuration Item custom metadata type, see Foundations Configuration Item Custom Metadata Type Fields.
Field |
Description |
---|---|
Label | Label of the record. When creating a new record, enter Avalara VAT Reporting Integration followed by the value of Small Data. For example, if Small Data is 2, enter Avalara VAT Reporting 2. |
Foundations Configuration Item Name | API name of the record. When creating a new record, automatically populates from the label. |
Process |
Name of the process that the record relates to. |
Small Data | Number of the record. The Avalara VAT Reporting Integration record with the highest number is used when generating the XML document. When you create a new record, increment this number by one. For example, if Small Data of the original record is 1, enter 2 for the new record. |
Large Data | JSON containing the field mappings. For more details, see Large Data JSON Keys. |
Object Type | Not used for the Avalara VAT Reporting integration. When creating a new record, leave this blank. |
Object Field | Not used for the Avalara VAT Reporting integration. When creating a new record, leave this blank. |
Identifier |
Identifier for the group of records. |
Enabled | Indicates that the record is enabled. When creating a new record, select this. |
The Large Data field contains an array of JSON objects with keys and values that define the field mapping, as well as the countries and document types it applies to. The following table details the structure.
Customizing the Default Mappings
You can customize the default mappings by creating a new Avalara VAT Reporting Integration record. This might be useful if you want to map a custom field rather an Accounting field.
To create a new mappings record:
- From Setup, click Custom Code | Custom Metadata Types.
- Next to Foundations Configuration Item, click Manage. All the existing records display.
- Click Avalara VAT Reporting Integration. If there are multiple records with the same label, open the one that has the highest value in the Small Data field.
- Click Clone.
- Leave the default value for the Process and Identifier fields.
- Increment the Small Data value by one. For example, if it is set to 1, enter 2.
- In the Label field, add the Small Data to the end of the existing label. For example, Avalara VAT Reporting Integration 2. This makes the record easier to identify.
- In the Large Data field, edit the required mappings.
- Make sure that Enabled is selected.
- Leave the default value for the remaining fields.
- Click Save.
- [Optional] To verify that the mappings are correct, perform step 3 in the Avalara VAT Reporting Integration Feature Console feature. If the step is already performed, revert it and perform it again.
Special Mappings
When generating the XML document, the following mappings are processed slightly differently to standard mappings.
Last Invoice Number
The Last Invoice Number indicates the document number of the last invoice in a group of recurring sales invoices. You must not modify the source field or the XML path for this mapping. Otherwise, the XML might not be generated properly.
Reverse VAT
The Avalara VAT Reporting integration supports reporting a reverse charge. When a transaction line item has Is Output VAT Tax selected, by default the Home Value is used to populate the VATReversed field in Avalara VAT Reporting. If Is Output VAT Tax is deselected, the VATReversed field is set to zero.