# Withholding Tax improvement and declaration

The module improves withholding tax management and lets you export the Italian **Withholding Tax Declaration** file (Certificazione Unica, CU) for payees, based on the withholding tax entries recorded in Business Central.

Main features:

- handling of multiple payments with the same document number when creating withholding tax entries;
- improvements to the **Withholding Tax Card**;
- export of the Withholding Tax Declaration file through **Document Exchange**.


On the **Vendor Ledger Entries** page, the standard **Create Withholding Tax Entry** action is extended.

If the same payment document (same **Document No.** and **Posting Date**) contains several vendor payments, after the withholding tax is created its document number is made unique by adding a progressive suffix, for example `PAY001-1`, `PAY001-2`, according to the position of the payment within the document.

This way a separate withholding tax can be created for each payment of the same document. If a withholding tax with the resulting number already exists, the message *Withholding %1 already exists* is shown.


On the standard **Withholding Tax Card**:

| Field | Description |
|---|---|
| **Reason** | When changed, the withholding tax is saved immediately and the page is refreshed. The reason is mandatory for the declaration export. |
| **Base - Excluded Amount** | The standard field is replaced by an equivalent one that, when you click the value, opens the **withholding tax lines** with the breakdown of the excluded amounts by non-taxable income type. |



1. Open **Document Exchange Profiles** and create a profile with **Exchange Format** = **Italy Withholding Tax Declaration**.
2. Choose the **Exchange Transport** used to deliver the file (for example, download).
3. In **Company Information**, make sure the following are filled in: **Name**, **Fiscal Code**, **Email**, **Phone No.**, **Transmission Intermediary No.** (a vendor with a fiscal code) and **General Manager No.** (legal representative from **Company Officials**, with first name, last name and fiscal code).
4. On payee vendors, fill in the **Fiscal Code**. For individuals (**Individual Person** enabled) also **Last Name**, **First Name**, **Gender**, **Date of Birth**, **Birth City** and optionally **Birth County** are required; for companies the **Name** is required.


1. Open the withholding tax list and select a withholding tax of the year to declare.
2. Start document exchange and choose the **Export Italy Withholding Tax Declaration** option.
3. The system processes all withholding taxes of the same **Year** as the selected one and produces the file.


- Withholding taxes are grouped by **vendor** and **reason**: one certification is generated per pair, with gross amount, excluded amounts, taxable base and withheld amount.
- Excluded amounts are summarized by **non-taxable income type** (set on the withholding tax lines, mandatory).
- The signature and transmission commitment date is the work date.
- The file is named `<Company fiscal code>_CURyy.txt`, where `yy` are the last two digits of the year following the withholding tax year.
- If any required data is missing (company, intermediary, representative, vendor, reason or income type) the export stops, indicating the field to fill in.
- The withholding tax's excluded amount must match the total of its lines.