# VAT exemption

This feature extends the standard Business Central **VAT Exemptions** (declarations of intent) to:

- automatically suggest the valid declaration of intent on sales document lines;
- check at posting that the declaration is valid on the date and that the declared ceiling is not exceeded;
- track the amount already used for each declaration;
- include the declaration references in the electronic invoice.



The **VAT Posting Setup** page has a new field (hidden by default, add it by personalizing the page):

| Field | Description |
|---|---|
| VAT Exemption Mandatory | If enabled, sales lines with this VAT business/product posting group combination must specify a VAT exemption number. The **VAT Exemption No.** field on lines can be filled in only for these combinations. |


The **VAT Exemptions** page (opened from the customer or vendor card) has new fields:

| Field | Description |
|---|---|
| VAT Bus. Posting Group | VAT business posting group automatically applied to sales lines when the declaration is valid. |
| Posted Sale Amount | Amount already invoiced to the customer under this declaration (net of credit memos). Visible only for customer exemptions. |
| Posted Purchase Amount | Amount already posted under this declaration in purchases. Visible only for vendor exemptions. |


The lines of **Sales Orders**, **Sales Invoices** and **Sales Credit Memos** have the **VAT Exemption No.** field (hidden by default).

| Field | Description |
|---|---|
| VAT Exemption No. | Declaration of intent of the bill-to customer applied to the line. You can choose among the bill-to customer's exemptions; it is accepted only if the line's VAT combination has **VAT Exemption Mandatory** enabled. |

The exemption number is also carried to posted sales invoice and credit memo lines and to VAT entries, together with the **VAT Exemption Amount** (line base amount).


- **Declaration suggestion:** when a sales line is created, if the bill-to customer has a VAT exemption valid on the document date, **VAT Exemption No.** is filled in with its number and, if the exemption specifies a **VAT Bus. Posting Group**, that group is set on the line.
- **VAT group change:** changing the line's VAT business posting group clears the exemption number.
- **The standard exemption lookup on the document header is no longer performed**: exemptions are handled at line level.
- **Posting checks** (when invoicing):
  - lines whose VAT combination has **VAT Exemption Mandatory** must have an exemption number;
  - the declaration must have a starting and ending date, and the posting date must fall between them;
  - for orders and invoices, the amount of the lines using the declaration must not exceed the remaining ceiling (declared amount minus **Posted Sale Amount**);
  - for credit memos and return orders, the amount to reverse must not exceed the **Posted Sale Amount**.
- **Electronic invoice:** for lines subject to mandatory exemption, the XML file includes an *Other management data* block with data type `INTENTO`, a reference made of exemption number and consecutive number, and the declaration date. These values (consecutive number and exemption date) must be filled in on the VAT exemption.


1. In **VAT Posting Setup**, enable **VAT Exemption Mandatory** on the VAT combinations used for exempt sales.
2. On the customer card, open **VAT Exemptions** and enter the declaration of intent with number, consecutive number, date, validity period, declared amount and, optionally, the **VAT Bus. Posting Group** to apply.
3. Create the sales document: lines automatically receive the valid declaration.
4. Post the document: the system checks validity and ceiling and updates the **Posted Sale Amount**.