The D406 is unlike any other return. The others report aggregated figures; SAF-T sends the data itself.
A single file contains the chart of accounts, the customer and supplier records, the products and stock items, every journal entry of the period, every invoice and every payment with their detail. Once a year the fixed asset register and the inventory are added.
In other words: ANAF receives the base, not a summary of it. Everything that follows comes from that.
The three files
The module covers the three required variants:
- Declaration — the transactional file, filed monthly by large and medium taxpayers and quarterly by small ones. It contains the movements of the period, with the master data that goes with them.
- Stock — the annual inventory file.
- Assets — the annual fixed asset register file.
For non-resident entities registered for VAT in Romania, the file is filed on request.
Where the data comes from
From your accounts, through the general ledger report of the period — not from a parallel module keeping its own figures.
That detail is worth underlining, because it is the difference between two approaches. If the return is built from a copy of the data, you have two truths that have to be reconciled. If it is built from the general ledger, what is in the trial balance is what goes to ANAF — and a difference between the return and the balance becomes impossible by construction.
The hard part is not the generation
Generating the file takes minutes. Preparing the data takes, at the first filing, weeks — and that is why companies that postpone it find themselves doing it in three months rather than three days.
SAF-T asks for fields an ordinary database has half filled in, because until now nobody asked for them:
The partners. A valid tax code, a full address, a country, a type. A record created in a hurry, with the name typed by hand and no CUI, passes through every internal flow without trouble — and blocks the SAF-T file.
The products and stock items. Classification, consistent units of measure, codes. A product with unit "buc" in stock and "BUC" on the invoice is the same goods to a person, but not to a validator.
The accounts. The chart of accounts has to be mapped correctly, including the analytic accounts added over time.
Document consistency. Every invoice has to have its entry, every payment its document, every entry its partner where one is required.
None of this is hard in itself. All of it is impossible to do in the last week, on a database with tens of thousands of records.
What a proper preparation looks like
The order that works, from implementation experience:
- Generate a test file, on a closed month, as early as possible. Not to file it, but to see what is missing.
- Validate it. The structural errors give you the list of things to fix, grouped by category on their own.
- Fix by category, not by error. If tax codes are missing, fix all the partners at once, with a filter and an import — not one by one, in the order they appear in the errors.
- Regenerate and validate again. The list shortens visibly from one iteration to the next.
- Only then settle into the monthly rhythm.
Companies that do these steps two or three months ahead file for the first time without drama. The others do the same work, but in the weekend before the deadline.
Validation
The file goes through DUKIntegrator — the official ANAF validator — from the same button as the rest of the returns. The service runs on a dedicated server and Odoo asks it over HTTPS, so nothing has to be installed on each instance.
You find out on the spot whether the structure is accepted, with the official report, before sending anything.
What you gain after the first filing
The part that only shows later: the data cleaned up for SAF-T serves everything else. Partners with complete data mean a D394 without discrepancies. Products classified consistently mean stock reports that can be read. Accounts mapped correctly mean a trial balance that explains itself.
From that angle, SAF-T is the best excuse a company has to put its data in order.
The module is on Odoo Apps, for Odoo 19 and 20: Romania - Accounting Declarations.
If you want us to generate a test file on your database, so you can see where you stand: nexterp.ro/contactus.