Repository navigation
Conversation
Apply section 8(7)-(8) of Act 462/2003 independently from the Social Insurance Agency ceiling; correct the 2024 assessment year and 2024-2027 four-place downward caps. Cover native leave and manual PN input at the 2027 maximum and preserve historical effective dates. Assisted-by: OpenAI Codex
|
Thank you, this is a real fix and the figures check out. We recomputed every value from the primary sources rather than from the PR, and they match yours to the last digit. The rule. § 8 ods. 7 zákona č. 462/2003 Z. z. caps the employee's denný vymeriavací základ at the DVZ "určený z 2-násobku všeobecného vymeriavacieho základu platného v kalendárnom roku, ktorý dva roky predchádza kalendárnemu roku, v ktorom vznikol dôvod na poskytnutie náhrady príjmu", and § 8 ods. 8 rounds the DVZ "na štyri desatinné miesta nadol". The wording of both odseky is identical in the consolidated version of 1. 1. 2023 (in force through 31. 12. 2025, so 2024 and 2025) and in the version of 1. 1. 2026, which is still the latest published one and therefore also governs 2027. The footnote points to § 11 zákona č. 461/2003 Z. z., where the VVZ is 12 × the average monthly wage "za príslušný kalendárny rok", so the year Y cap uses the VVZ for year Y − 2. Why the old values were off. The sickness benefit paid by Sociálna poisťovňa has the same cap formula in § 55 ods. 2 zákona č. 461/2003, but § 55 ods. 1 rounds "na štyri desatinné miesta nahor". Our 2025–2027 rows were taken from the SP-side figures, so each was 0.0001 too high for the employer's náhrada. The 2024 row, 79.6274, is the SP cap for 2023 (VVZ 2021 = 14 532, rounded up), i.e. one year stale and rounded the wrong way. Recomputed (exact decimal, 2 × VVZ(Y−2) / 365):
VVZ figures are from the Sociálna poisťovňa table you linked. A payroll vendor's published 2024/2025 comparison independently lists exactly this split (náhrada 85,7424 / 94,0273 "nadol", nemocenské 85,7425 / 94,0274 "nahor"), which also settles the divisor: 365 is used for 2024 even though it is a leap year, consistent with the SP cap for the same year. Money impact. 2027, 14 days at the cap: 106.5205 × (3 × 0.25 + 11 × 0.55) = 724.3394 → 724.34 under § 10 ods. 2; with 106.5206 it is 724.34008 → 724.35, so your test discriminates on exactly the cent that matters. For 2025 the existing 385.52 case is unaffected (94.0273 × 4.1 = 385.51193 → 385.52). The 2024 correction is the substantial one: a capped 10-day episode goes from 366.29 to 394.42 €, i.e. the old row underpaid by 28.13 €. Testing. On origin/19.0 with the patch applied, l10n_sk_hr_payroll_oca + _base + _parity: 0 failed (baseline 0 failed as well). Upgrading an origin/19.0 database with Small things before merge (none affects the figures):
Enterprise and 18.0. The Enterprise bridge carries the same parameter with the same four old values (and its own 2027 parameter test pins 106.5206); we will mirror the correction there, and on 18.0 (both engines), when we port this. No need to touch anything outside this module in this PR. Verdict: approve once the missing spaces in the docs are restored; the rest is optional polish. |
Assisted-by: OpenAI Codex
The employer sick-pay parameter currently uses Social Insurance Agency-style upward ceilings. In2027, using106.5206 for14 employer-paid calendar days produces724.35 euros, whereas the employer maximum106.5205 produces724.34. The2024 row also derives from the wrong assessment year: it contains79.6274 instead of85.7424.
Correct only the existing dated OCA parameter rows:2024=85.7424,2025=94.0273,2026=100.2082,2027=106.5205. Employer DVZ is truncated to four places under Act462/2003 section8(7)-(8); the same rounding was in force in2024-2025. The yearly assessment amounts come from the Social Insurance Agency table: the2024 employer ceiling uses the2022 general base15648. This is separate from the Agency sickness-benefit maximum.
Validation:25 targeted native Odoo19 tests passed, covering the dated table,2027 maximum with actual approved leave and manual inputs, unaffected parameter regressions, cross-year onset terms, calendar days, employment termination and insured/uninsured profiles. No salary formula is changed. The new2027 maximum cases exercise the actual native salary rule; existing dated-parameter and calendar regressions remain. EN/SK source docs and18.0 carry-over are recorded; the generated-repository docs tool is absent, so generated output is not claimed. Enterprise/18.0 are not tested.
Updating dated parameters does not recalculate, certify or repost retained payslips; those require the normal correction workflow. This PR is independent of the parameter-ambiguity guard in#54 and changes no private functionality.