[IMP] l10n_at_hr_payroll_private: add unpaid care/parental leave family (AP16)

Close the parental/care-leave block after the pilot-client scope release (8.13): six unpaid full-release kinds join the generic parental-leave work entry — Bildungskarenz (AVRAG § 11, two to twelve months by agreement with the AMS-financed Weiterbildungsbeihilfe), Familienhospizkarenz for terminal accompaniment (AVRAG § 14a, three to six months), accompaniment of seriously ill children (§ 14b, five to nine months), children's rehabilitation leave (§ 14e, four weeks per year), Pflegekarenz (§ 14c, one to three months, undivided) and the Papa-Monat (VKG § 1a, one month, creditable toward seniority under § 1a Abs 7 VKG iVm § 15f MSchG while Bildungs-/Pflegekarenz is not). All are unpaid at the employer — the external bodies pay the replacement income (AK, AMS, Bundesamt, KV-Träger) — so the new negative KARENZ_ENTGELT rule stops the employer wage per working day through the shared Tagesatz helper whose exclusion list now covers EFZG, Mutterschutz and Karenz corrections. The Versichertenmeldung run emits M4 deregistrations at the end of the pay entitlement (the day before the release begins) and M3 re-registrations at the return date — omitted when the employment itself ends — with the eSV Karenzart strings logged as protocol information pending the special DM-ORG formats (GP7 track). The fictive BMSVG basis gains the § 7 Abs 4 Z 1–3 bridge: when a new maternity prohibition follows a parental-leave stretch directly or after employment of less than three months, the reference months fall before the preceding prohibition, and a re-founded employment within three months of the ended karenziert employment uses the single last full calendar month; contributions during the KBG period are FLAF-financed (§ 7 Abs 5) and during hospice/care leave Bund-financed (§ 7 Abs 6) — no employer rule, verified by test. Pflegeteilzeit and comparable reduced-hour arrangements pay the BV contribution on the pre-reduction wage via a new version field consumed by the BMSVG basis (§ 6 Abs 4). The endabrechnung wizard gains the § 23 Abs 8 AngG full-time re-rating preview (monthly salary ÷ work_time_rate, confirmable) with § 23a Abs 4a and UEL § 10 Abs 4 UrlG guidance. The Mutterschutz status now detects the § 163 ASVG Sonderwochengeld case (prohibition inside a Karenz — the KV-Träger pays the increased sickness benefit) and warns on § 166 ASVG suspension (full for >50 % continued pay, half at 50 %, activity and Pflegekarenzgeld hints). Verified against the original statute text in .ris/ (AVRAG §§ 11/11a/14a–14e, VKG § 1a, MSchG § 15f, BMSVG § 7 Abs 4–6, ASVG §§ 163/166) and the knowledge-base sources lb-kar/elt/kzs/pap/kbg; the vacation proration of leave stretches (§ 15f Abs 2 MSchG on the hr_holidays allocation side), the eSV special formats for the Karenz art block, the full Sonderwochengeld computation and the leave-overlap policy decision remain documented open points.

Version 19.0.17.0.0 (private)
This commit is contained in:
2026-09-15 14:25:48 +02:00
parent 850e99df20
commit d53e1e64a1
15 changed files with 1018 additions and 12 deletions
@@ -95,6 +95,17 @@ class L10nAtEndabrechnungWizard(models.TransientModel):
'entfallende tarifmäßige Lohnsteuer nach den persönlichen '
'Verhältnissen. Bei steuerfreiem Monatslohn ausdrücklich 0 '
'bestätigen.')
abf_alt_hochrechnung_vorschau = fields.Monetary(
string='§ 23 Abs 8 AngG — Hochrechnung Vollzeit (Vorschau)',
currency_field='currency_id', compute='_compute_vorschau',
help='Endet das DV während einer Teilzeitbeschäftigung nach '
'MSchG/VKG (z. B. Elternteilzeit), ist die frühere '
'Normalarbeitszeit zugrunde zu legen (§ 23 Abs 8 AngG; für '
'Arbeitnehmerkündigung § 23a Abs 4a — 5-Jahres-Ø ohne '
'Karenz, manuell einzugeben). Vorschlag: Monatsentgelt ÷ '
'aktuelles work_time_rate; die Übernahme bleibt '
'bestätigt (bei UEL-Basen gilt § 10 Abs 4 UrlG — '
'überwiegende Arbeitszeit des Urlaubsjahres).')
abf_alt_mehrfach = fields.Float(
string='Bestätigter Anspruchsfaktor',
help='§-23-Staffel, gegebenenfalls halbiert/gedeckelt oder als '
@@ -404,6 +415,7 @@ class L10nAtEndabrechnungWizard(models.TransientModel):
wizard.abf_alt_steuer_6_vorschau = 0.0
wizard.abf_alt_lohnsteuer_vorschau = 0.0
wizard.abf_alt_netto_vorschau = 0.0
wizard.abf_alt_hochrechnung_vorschau = 0.0
wizard.abf_frei_z1_vorschau = 0.0
wizard.abf_frei_z2_vorschau = 0.0
wizard.abf_frei_kuerzung_vorschau = 0.0
@@ -434,6 +446,12 @@ class L10nAtEndabrechnungWizard(models.TransientModel):
wizard.abf_alt_steuer_6_vorschau = steuer_6
wizard.abf_alt_lohnsteuer_vorschau = steuer
wizard.abf_alt_netto_vorschau = betrag - steuer
rate = wizard.employee_id.version_id.work_time_rate
if rate and rate < 1.0 and wizard.abf_alt_monatsentgelt:
# § 23 Abs 8 AngG: frühere Normalarbeitszeit —
# Hochrechnungs-Vorschlag, bestätigte Übernahme.
wizard.abf_alt_hochrechnung_vorschau = \
wizard.abf_alt_monatsentgelt / rate
if wizard.abf_frei_aktiv:
split = slip._at_abf_frei_split()
satz = float(slip._l10n_at_param(