CCNL Area Dirigenza Istruzione e Ricerca 2022-2024 — ARAN¶
| CNEL code | S325 |
| Sector | Pubblica Amministrazione |
| Family | dirigenza-pubblica |
| Tax sector | pubblica-amministrazione |
| Last renewal | 2026-08-06 |
| Workers (est.) | ~8k |
| Ruleset version | 2026.2 |
| Readiness | 🧪 Exploratory |
Signatories
- ARAN
- ANP
- FLC CGIL
- CISL FSUR
- DIRIGENTI SCUOLA
- UIL SCUOLA RUA
Coverage¶
Derived from the capability registry. The scenario features and the ones outside the input are the same for every contract: see the capability matrix.
| Core payroll path of a contract | |
|---|---|
| ✅ | Every core capability is computed from bundled rules and request facts |
| ⚠️ | The contract's data leave a core capability partial: see Limits |
| Core payroll path | ✅ |
| Limits of this contract | workplace_injury |
1 documented simplification(s) and 0 missing feature(s): see Known simplifications.
Assurance¶
| Axis | Value | What it says |
|---|---|---|
| Extraction method | 🤖 AI-assisted | How the values were read from the sources |
| Extraction review | 🔴 Unverified | Whether a person checked the extracted file against its sources |
| Rule provenance | 0 verified / 15 derived / 0 assumed / 0 missing | Payable rules of the file by the evidence behind each value (statuses) |
| Ruleset confidence | 🔴 Unverified | The confidence the ruleset declares as a whole |
| Readiness | 🧪 Exploratory | Whether runs of this contract can be paid in operational mode (tiers) |
Freshness¶
| Last renewal | 2026-08-06 |
| Last review | 2026-11-16 |
| Latest salary tranche | 2024-01-01 |
Review history¶
| Date | Reviewer | Scope | Outcome | Findings |
|---|---|---|---|---|
| 2026-11-15 | claude-opus-5-5 (ai) | Holidays falling on a Sunday: the clause proposed by a separate model from the targeted research, its quote checked on the downloaded text. The CCNL text read is silent: the law applies. | confirmed | work_rules.sunday_holidays: 04-25, 05-01, 06-02 |
| 2026-11-16 | claude-opus-5-5 (ai) | Injury pay (art. 23 CCNL Area IR 8/7/2019) and the hourly divisor, read in the cited files by sha256. | corrected | Applied: the whole pay during the injury. The divisor 165 is not in the Area IR texts nor in those of the former areas V and VII: declared unsourced. |
Salary table¶
Latest effective values per level (monthly gross, EUR).
| Level | Description | Base salary (monthly) | Effective from |
|---|---|---|---|
PRIMA_FASCIA |
Dirigenti di prima fascia: enti di ricerca (INFN, CNR, ecc.) e ASI | € 4,908.30 | 2024-01-01 |
SECONDA_FASCIA |
Dirigenti scolastici, direttori università e AFAM, dir. enti ricerca II fascia | € 3,846.59 | 2024-01-01 |
Seniority increments¶
Cadence: every 1 months
Maximum: 0 increments
Known simplifications¶
Each simplification below is a model limitation of the registry. An open limitation with a monetary impact (yes or unknown) makes every result it applies to not payable, with an open_limitation blocker; the result lists every applicable limitation in assurance.limitations.
dirigenza-istruzione-ricerca-aran/approximate_hourly_divisor · workplace_injury · impact unknown · unsourced
Hourly divisor 165 = 38 hours a week x 52 / 12, not set by the Area IR texts. Since the injury is paid in full (art. 23 CCNL 8/7/2019), it only splits the total between the INAIL indemnity and the employer's integration.
Applies when: workplace_injury applies.
Remediation: Source the divisor of the Area IR, or of the former areas V, VII and ASI its art. 1 c. 13 keeps in force, and replace 165.
sickness_inps_daily_base · sickness · impact unknown · resolved
The INPS share of a sick day is computed on the INPS daily base of the episode, on the days INPS pays (the weekdays of an operaio, every day but the national holidays on a Sunday of an impiegato, point 7.3 of INPS circ. 134368/1981): the retribuzione media globale giornaliera of the month before the illness (INPS circ. 134368/1981 point 11; circ. 55/2024 Allegato 1), whole or partial month, impiegato or operaio, or for the lavoratori dello spettacolo the average pay of the last 40 daily contributions, capped for a fixed-term worker (INPS circ. 132/2021 par. 2.4). The base is a fact of the payroll history the episode states (SicknessEpisode.inps_base).
Applies when: sickness applies; the run takes the engine code path.
Remediation: Resolved: the INPS share is computed on the base of every regime of the bundle; an episode that states no base the engine can read has the missing_fact issue sickness_inps_base_unknown (fact inps_base), which blocks the run. Tests: tests/mutation/ccnl_engine/sickness/base/test_rules_wiring.py, tests/mutation/ccnl_engine/sickness/base/test_rules.py.
provisional_ruleset · irpef · impact unknown · awaiting_publication
The run reads a tax ruleset marked provisional: the sources of its year are not published yet (budget law of the year; regional and municipal surtax resolutions), so the values are those of the year before, carried over. Rules in force by statute (the IRPEF brackets of art. 11 and the deductions of art. 13 of the testo unico of D.Lgs. 117/2026) carry over unchanged; any change of the budget law is not applied.
Applies when: irpef applies; the run takes the engine code path.
Remediation: Replace each provisional ruleset of the year with the values of its published sources, drop its provisional flag, then resolve this limitation.
provisional_inps_ruleset · inps_employer · impact unknown · awaiting_publication
The run reads an INPS ruleset marked provisional: the INPS circulars of its year are not published yet, so the rates, the massimale and the minimale (and the hourly contributions of domestic work) are those of the year before, carried over. The indexed amounts change every January: the carried-over values understate them.
Applies when: inps_employer applies; the run takes the engine code path.
Remediation: Replace each provisional INPS ruleset of the year with the values of the INPS circulars of the year, drop its provisional flag, then resolve this limitation.
maternity_daily_base · maternity_leave · impact unknown · resolved
The INPS indemnity of the leave is computed on the pay of the month before, as the sickness base (art. 23 D.Lgs. 151/2001): an operaio's pay over the days worked or paid with the monthly share of the extra months over 25, a month not worked in full over its days worked or paid; the pay of the month before, its days and the pay of a whole month are facts of the leave, missing when not stated. The run keeps its own pay only when the category or the monthly payments of the CCNL are unknown.
Applies when: maternity_leave applies; the run takes the engine code path.
Remediation: Resolved: the base of an operaio and of a partial month is the sickness base of the month before.
paternity_daily_base · paternity_leave · impact unknown · resolved
The INPS indemnity of the leave is computed on the pay of the month before, as the sickness base (art. 23 D.Lgs. 151/2001): an operaio's pay over the days worked or paid with the monthly share of the extra months over 25, a month not worked in full over its days worked or paid; the pay of the month before, its days and the pay of a whole month are facts of the leave, missing when not stated. The run keeps its own pay only when the category or the monthly payments of the CCNL are unknown.
Applies when: paternity_leave applies; the run takes the engine code path.
Remediation: Resolved: the base of an operaio and of a partial month is the sickness base of the month before.
parental_daily_base · parental_leave · impact unknown · resolved
The INPS indemnity of the leave is computed on the pay of the month before, as the sickness base (art. 23 D.Lgs. 151/2001): an operaio's pay over the days worked or paid with the monthly share of the extra months over 25, a month not worked in full over its days worked or paid; the pay of the month before, its days and the pay of a whole month are facts of the leave, missing when not stated. The run keeps its own pay only when the category or the monthly payments of the CCNL are unknown.
Applies when: parental_leave applies; the run takes the engine code path.
Remediation: Resolved: the base of an operaio and of a partial month is the sickness base of the month before.
parental_income_condition · parental_leave · impact unknown · awaiting_publication
The days of parental leave beyond the indemnified months are paid 30% when the parent's individual income (ParentalLeaveEvent.individual_income) is below 2.5 times the yearly trattamento minimo di pensione (art. 34 c. 3 D.Lgs. 151/2001); a year whose minimum the INPS has not published yet (2027) pays them nothing.
Applies when: parental_leave applies; the run takes the engine code path.
Remediation: Add the trattamento minimo of each new year to the parental rates when the INPS circular publishes it.
parental_month_split · parental_leave · impact unknown · resolved
When a rate band or the indemnified months of the parental leave end inside a calendar month, the days of that month are paid in order at the rate of the period each falls in, one day of counter each, the last day what is left of the thirty. INPS attributes the rates to the periods of leave by day, within a month too: circ. 57/2024, example A, gives 30% to 21-31 December 2023 and 80% to 1-20 January 2024, and counts '10 giorni residui' of the further month after 20 days taken.
Applies when: parental_leave applies; the run takes the engine code path.
Remediation: Resolved: the rates follow the days of each period, as INPS circ. 57/2024.
parental_extra_month_share · parental_leave · impact unknown · resolved
The days of parental leave accrue the 13th and the other extra months in full at the employer's charge: the leave does not reduce them (art. 34 c. 5 D.Lgs. 151/2001), and no source sets a netting of the share the INPS indemnity holds in its base (art. 23 c. 2); by the maintainer's decision of 2026-11-15 the employer pays the whole rateo, as the text reads.
Applies when: parental_leave applies; the run takes the engine code path.
Remediation: Resolved by the decision of 2026-11-15: the employer pays the whole rateo of the extra months.
disability_permit_tfr · disability_permits · impact unknown · resolved
The days of permit under L. 104/1992 art. 33 c. 3 keep the TFR base. Art. 33 c. 4 refers to art. 43 D.Lgs. 151/2001, which applies art. 34 c. 5: the days are paid and counted in the seniority; no primary source states their TFR base, and by the maintainer's decision of 2026-11-15 they stay in it, as payroll practice holds.
Applies when: disability_permits applies; the run takes the engine code path.
Remediation: Resolved by the decision of 2026-11-15: the permit days stay in the TFR base.
notice_indemnity_partial · termination_notice · impact unknown · resolved
A notice partly worked pays the share of its calendar days left of the indemnity the CCNL band gives in monthly pays; the CCNL clause read (Federmeccanica Sez. Quarta Tit. VIII Art. 1) states the indemnity of the whole notice only, and practice also measures the rest by 30ths or 26ths of the monthly pay.
Applies when: termination_notice applies; the run takes the engine code path.
Remediation: Resolved: art. 2118 c. 2 c.c. (https://www.normattiva.it/atto/caricaArticolo?art.versione=1&art.idGruppo=267&art.flagTipoArticolo=2&art.codiceRedazionale=042U0262&art.idArticolo=2118&art.idSottoArticolo=1&art.idSottoArticolo1=10&art.dataPubblicazioneGazzetta=1942-04-04&art.progressivo=0&, sha256 834213e542e77f0f1079835b14c444432e208be59a9d3d4c859ff5ede6c8e11d): 'un'indennità equivalente all'importo della retribuzione che sarebbe spettata per il periodo di preavviso'; a notice partly worked owes the pay of the days left, as the engine computes. How a day of that pay is measured stays the declared residual notice_indemnity_day_measure. Read on 2026-11-15.
notice_indemnity_extra_months · termination_notice · impact yes · resolved
The indemnity is the monthly pays of the CCNL band on the monthly pay of art. 2121 c.c.; the 13th and 14th the notice would have accrued are not added, although art. 2121 counts 'ogni altro compenso di carattere continuativo', so the indemnity may be understated.
Applies when: termination_notice applies; the run takes the engine code path.
Remediation: Resolved: art. 2121 c. 1 c.c. (Normattiva, https://www.normattiva.it/atto/caricaArticolo?art.versione=2&art.idGruppo=267&art.flagTipoArticolo=2&art.codiceRedazionale=042U0262&art.idArticolo=2121&art.idSottoArticolo=1&art.idSottoArticolo1=10&art.dataPubblicazioneGazzetta=1942-04-04&art.progressivo=0, sha256 d0e0175efc4dd4c7e4cc4d8431ed107547531932ccfc6dc5e078b94f0a45e7ec): 'L'indennità di cui all'articolo 2118 deve calcolarsi computando [...] ogni altro compenso di carattere continuativo'. The indemnity carries the rateo of the extra months; read on 2026-11-15.
notice_indemnity_tfr · termination_notice · impact yes · resolved
The notice indemnity enters the TFR base only when the CCNL puts it there: the Cassazione holds that it is out of it, being referable to a period not worked after the end of the employment, and art. 2120 c. 2 c.c. leaves a different rule to the collective agreement.
Applies when: termination_notice applies; the run takes the engine code path.
Remediation: Resolved: the indemnity is out of the TFR base unless the CCNL notice sets tfr_base true.
notice_indemnity_day_measure · termination_notice · impact unknown · resolved
A notice in calendar days is paid at the monthly pay over 30 for each calendar day ('la retribuzione che sarebbe spettata', art. 2118 c. 2 c.c.): no law sets a daily measure, and by the maintainer's decision of 2026-11-15 a calendar day is a thirtieth of the month unless the CCNL sets its own. A CCNL whose daily quota differs records its own limitation.
Applies when: termination_notice applies; the run takes the engine code path.
Remediation: Resolved by the decision of 2026-11-15: a calendar day of notice is a thirtieth of the monthly pay.
extraordinary_leave_daily_base · extraordinary_leave · impact unknown · resolved
The daily indemnity of the extraordinary leave is the last monthly pay of fixed and continuous items times the monthly payments of a year, over 365 days (366 in a leap year), as INPS circ. 64/2001 par. 4 sets for a month worked full time; for a vertical part time the circular divides the pay of the month by its paid days, rest days included, which ExtraordinaryLeaveEvent.last_month_paid_days states. A vertical or mixed part time that does not state them is paid on the full-time measure, so its indemnity may be misstated.
Applies when: extraordinary_leave applies; the run takes the engine code path.
Remediation: Resolved: ExtraordinaryLeaveEvent.last_month_paid_days divides the pay of a vertical part time by its paid days (INPS circ. 64/2001 par. 4); a leave that does not state them is paid on the full-time measure with the provisional issue extraordinary_paid_days_unknown, which names the fact.
naspi_dismissal_exceptions · naspi_dismissal · impact unknown · resolved
The NASpI contribution of the end of an employment that does not state its case (EmploymentPeriod.naspi_case) is read from the cause, the just cause and the contract type alone: a resignation in the protected period of maternity and a mutual agreement before the labour office or on a transfer over 50 km would owe it (INPS circ. 44/2013 par. 1), a collective dismissal would owe 82% for an employer owing the CIGS contribution (L. 205/2017 art. 1 c. 137) and three times without union agreement (L. 92/2012 art. 2 c. 35), the changes of contractor with a social clause and the closures of a construction site of c. 34 would leave it out. The service counts the fixed-term periods before the open-ended contract and leaves out the leave of art. 42 c. 5 D.Lgs. 151/2001 only through EmploymentPeriod.started_on.
Applies when: naspi_dismissal applies; the run takes the engine code path.
Remediation: Resolved: EmploymentPeriod.naspi_case states the cases that owe, leave out or multiply the contribution; an end that could be one and does not state it is decided from its cause alone with the provisional issue naspi_dismissal_case_unknown, which names the fact.
personal_withholding_same_kind · personal_withholdings · impact unknown · resolved
Two garnishments of the same kind, or two salary assignments, share the measure of their kind (a fifth, or the tenth or seventh of the agente della riscossione) in the order of notification: art. 545 c. 4 c.p.c. sets 'un quinto per i tributi ... ed in eguale misura per ogni altro credito' and art. 5 DPR 180/1950 a cessione 'fino al quinto', but no text read says how two orders of the same kind split the measure, so the later order may be under- or overstated.
Applies when: personal_withholdings applies; the run takes the engine code path.
Remediation: Resolved: art. 553 c. 1 c.p.c. (Normattiva, https://www.normattiva.it/atto/caricaArticolo?art.versione=4&art.idGruppo=93&art.flagTipoArticolo=1&art.codiceRedazionale=040U1443&art.idArticolo=553&art.idSottoArticolo=1&art.idSottoArticolo1=10&art.dataPubblicazioneGazzetta=1940-10-28&art.progressivo=0&, sha256 b41bf831e63fcaacfe95231f9595da5d0e5619c162cc455a80632bba90c147cd): the judge 'le assegna in pagamento [...] ai creditori concorrenti' and 'L'obbligo di pagamento decorre, per il terzo, dalla notifica dell'ordinanza di assegnazione'. The amount each garnishment takes is the fact of its ordinanza: PersonalWithholding.installment, and two garnishments of one kind without it give the missing-fact issue personal_withholding_unassigned. Read on 2026-11-15.
mid_month_level_change · base_salary · impact unknown · resolved
A promotion on a day other than the first of a month splits the monthly pay of the run between the level before and the new level by the payable days of the CCNL daily quota on each side of the promotion, component by component, as a month of hire or termination; the hourly quotas of the month read the same split chain. No source sets the split (art. 2103 c.c. gives the higher pay from the assignment): by the maintainer's decision of 2026-11-15 the partial-month rule of the CCNL applies.
Applies when: base_salary applies; the run takes the engine code path.
Remediation: Resolved by the decision of 2026-11-15: the month is split by the partial-month rule of the CCNL.
arrears_unused_deductions · contract_renewal_arrears · impact yes · resolved
The engine computes the rate of the separate taxation of arrears from PriorYearTaxFacts.net_income_biennio (art. 21 cc. 1, 3 TUIR) and reduces the tax by ArrearsEvent.unused_deductions, the deductions of artt. 12 and 13 cc. 1-2 the worker did not use in the years the arrears refer to (art. 21 c. 4). An arrears event that does not state them, among which the una tantum the engine pays itself, is taxed without the reduction, so the tax may be overstated.
Applies when: contract_renewal_arrears applies; the run takes the engine code path.
Remediation: Resolved: art. 21 c. 4 TUIR (Normattiva, https://www.normattiva.it/uri-res/N2Ls?urn:nir:stato:decreto.del.presidente.della.repubblica:1986-12-22;917~art21!vig=, sha256 aafc3e5d5cd7254c7eb52e74051e86f1243b3a7b3cbadcd951daf7bc5e113fc6): 'Gli aventi diritto agli arretrati devono dichiarare al soggetto che li corrisponde l'ammontare delle detrazioni fruite per ciascuno degli anni cui si riferiscono'. The deductions are a fact the worker declares: ArrearsEvent.unused_deductions, and PriorYearTaxFacts.arrears_unused_deductions for the una tantum the engine pays as arrears; unstated, the run carries the missing-fact issue arrears_unused_deductions_unknown. Read on 2026-11-14.
pension_extra_deduction_first_employed · pension_fund_contribution · impact unknown · resolved
A worker first employed after D.Lgs. 252/2005 came into force may deduct, in the twenty years after the fifth year of membership, the contributions above the annual cap within the room the first five years left, up to half the annual cap (art. 8 c. 6). The withholding agent applies it (AdE circ. 70/E/2007: the employer excludes the deductible contributions from the income of the ritenute): the worker states the deduction of the year as PensionFundEnrolment.extra_deduction, and contributions above the cap left with none stated carry the missing fact extra_deduction.
Applies when: pension_fund_contribution applies; the run takes the engine code path.
Remediation: Resolved: the extra deduction is an input of the enrolment.
Sources¶
| Document | Kind | Date | URL |
|---|---|---|---|
| Tabelle retributive CCNL Area Dirigenza Istruzione e Ricerca 2022-2024. Seconda fascia: 47.015,73 → 50.005,73€/anno da 1/1/2024 (+230€/mese). Prima fascia: 60.102,87 → 63.807,87€/anno (+285€/mese). Firma definitiva 6 agosto 2026. | altro | 2026-08-06 | ↗ |
| CCNL Area Dirigenza Istruzione e Ricerca 2019-2021, firmato 7 agosto 2024. Stabilisce il tabellare previgente di 47.015,73€/anno per 13 mensilità. Retribuzione di posizione fissa 13.345,11€/anno. Incremento +230€/mese decorre da 1/1/2024 per il CCNL 2022-2024. | altro | 2024-08-07 | ↗ |
| Conferma firma definitiva 6 agosto 2026. Signatari: ANP, FLC CGIL, CISL FSUR, Dirigenti Scuola, UIL Scuola RUA. ANCODIS non ha firmato. | altro | 2026-08-06 | ↗ |
Coverage notes
POSITION PAY, FIXED PART (CCNL 6 August 2026, Artt. 7, 11 and 15, pp. 12-17): 42.598,20 a year for the prima fascia and 14.515,11 for the dirigenti scolastici, AFAM and the other seconda fascia, over 13 months from 1 January 2024 (allowance POSIZIONE_FISSA); before 2024 less the increases of 215,00 and 90,00 a month. The variable part depends on the assignment and is the caller's.
Nessuno scatto automatico di anzianità per i dirigenti. maximum_count=0.
Layer 2 implemented. Part-time: engine scales by part_time_pct. Fixed-term: PA is excluded from NASpI addizionale (lavoratori delle pubbliche amministrazioni in statutory exclusion list per INPS guidance); fixed_term_additional_rate=0.000 in tax file. Apprenticeship: no ARAN CCNL defines percentage or under-classification tracks; narrow high-qualification form under D.Lgs. 81/2015 Art. 47 exists for research profiles but is not operationalized in any examined CCNL.
CNEL S325 inferito dalla struttura coerente dei codici ARAN: S005/S025 (FC), S105/S125 (FL), S205/S225 (Sanità), S305/S325 (IR). I codici S005, S105, S205, S225, S305 sono verificati; S325 è inferito dal pattern *25=area dirigenza.
Period 1 valid_from=2021-01-01: corrisponde all'ultima tranche del CCNL Area IR 2019-2021 (+135€/mese da 1/1/2021), firmato retroattivamente il ⅞/2024. Valore 3.616,59€/mese (seconda fascia) confermato dalle note di fonte. Struttura storica documentata correttamente.
Seconda fascia include categorie eterogenee (dirigenti scolastici, direttori università/AOU, dirigenti II fascia enti ricerca). Modellate come unico livello: il tabellare è uniforme per fascia (50.005,73€/anno dalla fonte disponibile). Scelta strutturale deliberata.
Nessun straordinario: principio di onnicomprensività della retribuzione dirigenziale PA (Art. 3 D.Lgs. 165/2001). overtime_bands vuoto è corretto.
Assenza non retribuita: prassi PA divisore 30 (mensile/30 per giorno di assenza). Modellato con by_30, coerente con le altre aree ARAN dirigenza.
Malattia: 100% mesi 1-9, 90% mesi 10-12, 50% mesi 13-18, comporto max 18 mesi (540 gg) — CCNL Area IR 2022-2024 (stessa disciplina delle altre aree ARAN). Modellato con SicknessTier; ogni giorno di malattia riceve il tasso del mese dell'episodio in cui cade, anche in un periodo di paga a cavallo di una soglia (review of 2026-10-30)
PENSION FUND. Perseo Sirio (1% + 1% of the retribuzione utile ai fini del TFR). Enrolment is a fact: the silenzio-assenso of the hires from 2 January 2019 (accordo ARAN 16/09/2021) is not inferred, nor the three months a fixed term needs to enrol. The TFR conferred stays a notional INPS accrual.
PENSION FUND. Two funds: Fondo Scuola Espero for the dirigenti scolastici and Perseo Sirio for the dirigenti of universities and research bodies; PensionFundEnrolment.fund_code names the worker's.
Tabellare previgente da CCNL Area Dirigenza Istruzione e Ricerca 2019-2021 (firmato ⅞/2024). Seconda fascia: 47.015,73€/anno = 3.616,594...€/mese → 3.616,59€. Prima fascia: 60.102,87€/anno = 4.623,298...€/mese → 4.623,30€.
Incremento CCNL 2022-2024 (firmato 6/8/2026): seconda fascia +230€/mese × 13 = 50.005,73€/anno = 3.846,594...€/mese → 3.846,59€. Prima fascia +285€/mese × 13 = 63.807,87€/anno = 4.908,298...€/mese → 4.908,30€.
Signatari (6/8/2026): ANP, FLC CGIL, CISL FSUR, Dirigenti Scuola, UIL Scuola RUA. ANCODIS non ha firmato (flcgil.it).
Platea: ~7.550 dirigenti scolastici + ~360 direttori università/ricerca = ~7.910 totale (quifinanza.it).
Raw data¶
The contract file this page is generated from: agreement/dirigenza-istruzione-ricerca-aran.json.
Usage example¶
"""Usage example: dirigenza-istruzione-ricerca-aran (S325).
CCNL Area Dirigenza Istruzione e Ricerca 2022-2024 - ARAN.
Generated by scripts/documentation/contract_example/generate.py from the
bundled data; edit the generator, not this file.
Level PRIMA_FASCIA (middle of the level list), regular run of September
2026, full-time permanent employment, 50 employees, worker resident in Milan
(region IT-25, municipality F205), seniority recognised from 1 September
2026.
"""
from datetime import date
from ccnl_engine import (
EmployerProfile,
Employment,
Headcount,
PayrollEngine,
PayrollRun,
PeriodFacts,
PeriodInput,
)
from ccnl_engine.inputs import (
Permanent,
SeniorityFact,
SenioritySource,
)
CCNL = "dirigenza-istruzione-ricerca-aran"
LEVEL = "PRIMA_FASCIA"
SENIORITY = SeniorityFact.since(date(2026, 9, 1), SenioritySource.EMPLOYER_RECORDS)
engine = PayrollEngine.bundled()
result = engine.calculate_period(
PeriodInput(
run=PayrollRun.regular(year=2026, month=9),
payment_date=date(2026, 9, 25),
employment=Employment(
ccnl_id=CCNL,
level_code=LEVEL,
contract_type=Permanent(),
seniority=SENIORITY,
),
employer=EmployerProfile(headcount=Headcount(50)),
facts=PeriodFacts(
regione="IT-25",
comune_belfiore="F205",
),
)
)
issues = ", ".join(sorted(issue.code for issue in result.issues)) or "none"
blockers = ", ".join(sorted({b.code.value for b in result.blockers})) or "none"
readiness = engine.inspect_ruleset(CCNL).readiness
print(f"Gross: {result.period_gross} EUR")
print(f"Contributions: {result.contribution_breakdown.employee} EUR")
print(f"IRPEF: {result.tax_computation.ordinary_tax} EUR")
print(f"Net: {result.period_net} EUR")
print(f"Payable: {result.is_payable}")
print(f"Net payable: {result.is_net_pay_payable}")
print(f"Cost complete: {result.is_employer_cost_complete}")
print(f"Readiness: {readiness}")
print(f"Blockers: {blockers}")
print(f"Issues: {issues}")