NextERP Documentation
ROEN

ANAF returns · Article 06

The D112 return

Applies to Odoo 19 · 20

D112 (Declarația privind obligațiile de plată a contribuțiilor sociale, impozitului pe venit și evidența nominală a persoanelor asigurate, the monthly return on social contributions, income tax and the register of insured persons) is prepared on the ANAF declarations dashboard, like D300 or D394. Odoo collects the month's data per insured person and per payment obligation. The NextERP server applies the D112 structure of the period, validates it and generates the XML.

The ANAF versions of D112, from which period each applies and what changes: D112 versions.

Requirements

  • D112 is among the returns the company files (ANAF Declarations › Configuration › General › Declarations and Registers). The monthly filings appear automatically in the schedule.
  • The D112 version for the period is synchronised.
  • With Enterprise Payroll: the Payroll accounts requirement is confirmed (see Configuration). Otherwise the document can be neither computed nor generated.
  • The month's payslips are validated (Enterprise) or confirmed (OCA). Draft payslips are not included.

Who can file it

The D112 groups come from the server: accountants (Accounting), Payroll: Officer (Enterprise), Payroll: user (OCA) and Employees: Administrator. A user in these groups without accounting rights sees only the Schedule and Documents menus in ANAF Declarations, and only the D112 filings. Other returns are refused.

Steps

  1. ANAF Declarations › Schedule: find the month's D112 card (filter To Do) and click Generate (or open the filing).
  2. On the document click Calculate on Server. The month's payslips are loaded into the document sections.
  3. Check the sections and the validation errors (The declaration has validation errors), then the Automatic Validation tab.
  4. Generate XML, validate the file and file it with ANAF.
  5. Mark as Filed. For a corrective return use Corrective Declaration on the filed document.

What feeds each part

Employer: section A (payment obligations)

One row per payment obligation: the sum of the payslip lines of the rules linked to that obligation (the Obligation field on the rule or the Salary rule obligations parameter), as an absolute value rounded to the leu.

Obligation From the rules
412 CAS withheld CAS, CAS_CM
432 CASS withheld CASS, CASS_CM
602 Salary income tax INCOMETAX, INCOMETAX_CM
480 CAM CAM
458 CAS borne by the employer CAS_MIN_DIFF
459 CASS borne by the employer CASS_MIN_DIFF

CAS is the social insurance (pension) contribution, CASS the health insurance contribution and CAM the employer's work insurance contribution.

A_plata = A_datorat − deductible amounts − exempt amounts (options, below). The budget code comes from the obligations nomenclature.

Employer: section B (totals)

The number of insured persons for unemployment, health and pension, the total gross salary and the number of employees (insured types marked "employee").

Employer: sections C and E (sick leave)

The days and amounts of sick leave paid by the employer and the amount to recover from FNUASS (the national health insurance fund for sick leave benefits) are summed from the month's certificates (D_14, D_20, D_15, D_21). These sections are built by the server.

Insured person: section A or B1

D112 field From
A_1 / B1_1 insured type, A_2 pensioner, A_3 working time, A_4 hours per day contract, Romania section
A_8 / B1_15 days worked days worked from the payslips
A_13 gross (and A_sal1, A_sal2) rule GROSS
A_14 CAS rules CAS + CAS_CM
A_11 CASS base the payslip CASS base (without exempt benefits, with the vouchers)
A_12 CASS rules CASS + CASS_CM
A_5 CAM base the CAM base (without the FNUASS part)
A_13P, A_14P, A_14D / A_11P, A_12P, A_12D contributions at minimum wage level (part time); in B1 the B4 equivalents
casaSn, asigCI, asigSO, asigScu, asigExc, motivExc, cisAsig contract
income tax (E3) rules INCOMETAX + INCOMETAX_CM

The section is chosen by the insured type (see Employees and contracts).

Insured person: co-insured persons

From the employee's Co-Insured Persons tab.

Insured person: section D (medical certificates)

One row for each approved certificate that starts in the month: series and number (D_1, D_2), the initial certificate (D_3, D_4, Data_CMI), the dates (D_5–D_7), the child/patient CNP (personal numeric code), the benefit code (D_9), the national programme (D_9a), the unpaid day (D_9b), the place of prescription and the special codes (D_10–D_13), employer / FNUASS / total days (D_14–D_16), the base and its days (D_17, D_18), the daily average (D_19), employer / FNUASS amounts (D_20, D_21), the diagnosis (D_23) and the percentage (D_28). The amounts come from the sick leave lines of the payslip.

Insured person: secondment (det1)

From the Secondment section of the contract.

Rules by period

The D112 structure of the reporting month comes from the D112 layout parameter: the structure from 08/2025 (v6) or from 01/2026 (v7). The previous month's benefit can still be corrected through a corrective return until June 2026. From 02/2026 the first unpaid day applies.

Employer options

Some data does not exist in Odoo and is entered as JSON on the document, in the Import tab (the inputs field), before computing. The tab is visible only to accounting administrators (Accounting: Administrator) and only while the document has no computed sections yet:

{
  "d_rec": 0,
  "tip_rec": null,
  "casaAng": "TM",
  "datCAM": true,
  "bifa_CAM": false,
  "bifa_AgCon": null,
  "caenC": null,
  "cifS": null,
  "obligations": {"480": {"A_deductibil": 0, "A_scutit": 0}}
}
Key Meaning
d_rec / tip_rec Corrective return and correction type (a Corrective Declaration sets d_rec = 1 automatically)
casaAng The employer's health insurance fund, if different from the county of the registered office
datCAM, bifa_CAM The employer owes CAM; the CAM checkbox
bifa_AgCon, caenC Sector facilities (agriculture, construction) and the CAEN code
cifS The successor's tax ID (CIF)
obligations Deductible or exempt amounts per obligation
rates Different rates for the estimate without payroll

Without payroll

Without payslips, D112 is estimated from the contracts: the monthly salary and the contract's working days, with the legal rates (CAS 25%, CASS 10%, income tax 10% of gross − CAS − CASS, CAM 2.25%), on the obligations in the D112 obligations of the estimate parameter. Corrections are entered in the same JSON:

{
  "employees": {"1800202123456": {"gross": 5264.92, "days": 17}},
  "certificates": {"CCMAM 4242": {"base_6m": 36000, "days_6m": 126,
                                   "amount_employer": 628.56, "amount_fnuass": 0}}
}

The certificate days (percentage, unpaid day, employer / FNUASS) are computed automatically. The base and the amounts are taken from the JSON. The estimate does not apply the personal deduction, so the income tax in the estimate must be corrected with the real amounts.

A month without validated payslips also uses the estimate from contracts, even if payroll is installed.

Documentation by the NextERP team.