build_sport_worker_exemption_dato_gestionale
Builds the ESENZSPORT AltriDatiGestionali entry for invoicing sport-worker IRPEF exemptions, with optional reference date and annual exempt amount (up to €15,000/year).
Instructions
Build the AltriDatiGestionali entry for the sport-worker IRPEF exemption codifica.
Covers compensation under art. 36, comma 6, D.Lgs. 36/2021 (lavoro sportivo dilettantistico), exempt from the taxable base up to EUR 15,000/year. Sets TipoDato to 'ESENZSPORT' — verified against AdE Allegato A – Specifiche Tecniche 1.9.1 (in force 2026-05-15). RiferimentoTesto/RiferimentoNumero are not mandated for this codifica (unlike e.g. 'ALI-COMP', which requires RiferimentoNumero); both are left to the caller's discretion here.
Pass the returned dict's 'AltriDatiGestionali' value inside a list to add_linea_dettaglio()'s altri_dati_gestionali parameter — or pass the dict itself if you are constructing the list manually.
On success returns {'AltriDatiGestionali': {'TipoDato': 'ESENZSPORT', ...}}. On failure (invalid riferimento_data) returns {'error': ''}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| riferimento_data | No | Optional reference date (YYYY-MM-DD) for RiferimentoData. | |
| riferimento_numero | No | Optional cumulative annual compensation amount (EUR) to record in RiferimentoNumero. Not mandated by the spec for this codifica — a convenience for callers who want to track it on the invoice. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||