Filing your taxes

The ERP prepares the Tax Agency forms from what is already recorded —the VAT register, the withholding register and the accounts—, lets you review them box by box and generates the file. Almost all of them are filed from the program itself.
Before filing any form for the first time, read the warning at the top of its page. Each form says how far the check of its files with the Spanish Tax Agency (AEAT) has gone, and that warning is part of the answer.
Where do I start?
With the Tax dashboard, which is the entry screen for everything to do with tax. It isn’t a scorecard: it is an index with the returns, the forms, the tax master data and the filings, split into families.
How do I declare VAT?
Form 303 (VAT return) is the periodic self-assessment, and the ERP generates it from a VAT return you have already created: file Form 303 (in Spanish). At the end of the year there is the annual summary, which comes from the same register —the output VAT of the invoices issued and the deductible VAT of the invoices received—: produce the annual summary, Form 390 (in Spanish).
There are two more informative returns fed by the VAT register. Form 349 covers intra-EU transactions and recognises them by the *business partner*’s EU VAT number (NIF-IVA): declare intra-EU transactions (in Spanish). And Form 347 declares the customers and suppliers above the annual threshold, broken down by quarter: prepare Form 347 (in Spanish).
Form 340 is a special case and its page explains it plainly: the file the ERP generates is a working file for reviewing and reconciling the registers for a period, and the program doesn’t file it. Read produce Form 340 (in Spanish) before using it for anything official.
How do I declare income tax withholding (IRPF)?
First you define the percentage. A withholding type is a percentage with a name —professionals, rentals, agricultural activities— and from its screen you then choose it on customer, supplier and item records and on document lines: define the withholding types.
When the payment has no invoice behind it —a payslip, a dividend, the interest on a loan— it is entered by hand and goes into the withholding register just like the others: record payments without an invoice.
Each quarter you close the return, which gathers what has been withheld and not yet declared and marks it as declared: prepare the withholding returns. And you have to choose a form, because they are different returns that are filed and paid separately:
- 111, withholdings on employment and professional activities: file Form 111 (in Spanish).
- 115, withholdings on rentals: file Form 115 (in Spanish).
- 123, withholdings on dividends and interest: file Form 123 (in Spanish).
What about the annual withholding summaries?
In January the summary of the year goes in, payee by payee, which is what makes the withholdings appear on each person’s income tax return. They come from the withholding register for the whole financial year and, before they are generated, they are reconciled with the year’s quarterly returns:
- Form 190 (in Spanish) summarises the withholdings in Form 111.
- Form 180 (in Spanish) summarises the rental withholdings in Form 115.
- Form 193 (in Spanish) summarises the investment income withholdings in Form 123.
What if I pay income tax (IRPF) and not corporation tax?
Then the quarterly payment on account is Form 130, the one for people carrying on a business activity under direct assessment (estimación directa). The ERP proposes the boxes and lets you correct any of them by hand: file Form 130 (in Spanish).
How do I prepare corporation tax?
The tax starts from the accounting result, so the first step is to take it from the accounts and see where it comes from, with warnings about anything that doesn’t add up before the figure goes into the return: produce the financial statements for corporation tax.
That accounting result is not the tax base. The adjustments your adviser decides on, the losses from previous years that are offset and the deductions still pending aren’t in the accounts and are entered separately, where they stay alive from one year to the next: record the tax notes for the financial year.
With that, Form 200 (in Spanish) shows the whole chain down to the amount payable or refundable and lets you correct any link. Its page starts by warning how far the ERP’s calculation goes, and you should read it all before using it. The payment on account during the year is Form 202 (in Spanish), which is filed three times and can be calculated in two ways.
What about what is filed with the Mercantile Registry?
Closing the financial year also brings two procedures with the Mercantile Registry, and the ERP prepares the file for each one for the Spanish Registrars’ program that files it. Neither is sent from the ERP: signing and sending are done in those programs.
The legalisation of the accounting books takes the Journal, the Inventory and Annual Accounts book and, if you want, the Ledger, each with its fingerprint (hash), in the ZIP that Legalia 2 loads: legalise the books with the Mercantile Registry (in Spanish). And the filing of the annual accounts starts from the balance sheet and the profit and loss account of the financial year, the same ones as in Form 200, in the file that D2 imports: file the annual accounts with the Mercantile Registry (in Spanish).
How do I check a form before filing it?
With the Validate with the AEAT button, which sends the file to the Tax Agency for review and returns its errors exactly as it writes them. It doesn’t file anything: check a form with the AEAT (in Spanish).
Before a filing season you can do the same with all the forms that apply to you, in a single run and with a history: validate all the forms. It is worth it, because the Tax Agency changes the file layouts by ministerial order, and a form that validated in January may stop doing so in April without you having touched anything.
What happens when I file with the AEAT?
A line appears with what you are about to file —form, financial year, period and amount— and you are asked to confirm. If you confirm, the program saves the exact file you are looking at and queues it: that is what will be filed and nothing else, even if the invoices change tomorrow. The submission and its history are followed in Taxes → AEAT filings.
And there is a difference worth being clear about before you click, because not all forms are undone in the same way: for self-assessment returns the Tax Agency doesn’t allow you to cancel a return already recorded, whereas for informative returns you can withdraw what was filed. This is explained in file a form with the AEAT (in Spanish), which is the page to read before the first submission.
More about Taxes
- How do I record the adjustments, losses and deductions for corporation tax?
- How do I define the withholding types?
- How do I prepare the withholding return for a quarter?
- What is the Tax dashboard and what is it for?
- How do I record a payment without an invoice?
- How do I produce the balance sheet and the profit and loss account for corporation tax?
- How do I check all my forms in one go before a filing season?