Skip to content

fix: correct 2023-2026 tax tables and IRPF deductions - #10

Merged
vitormattos merged 1 commit into
mainfrom
fix/tax-tables-2023-2026-deductions
Oct 26, 2026
Merged

vitormattos merged 1 commit into
mainfrom
fix/tax-tables-2023-2026-deductions

Conversation

@vitormattos

Copy link
Copy Markdown
Member

Summary

  • Correct INSS maximum contribution base for 2023 (R$ 7,507.49) and 2024 (R$ 7,786.02).
  • Apply the IRPF monthly table revised from May 2025, preserving January-April 2025.
  • Correct the February-December 2024 date interval (previously overlapped January).
  • Compare the actual simplified monthly deduction against legal deductions (INSS and dependents), selecting the more beneficial treatment rather than comparing against the simplified threshold itself.
  • Add regression tests for historical caps, monthly boundaries, dependent deductions and the 2026 reduction, with PHP 8.4 / 8.5 CI coverage.

Evidence

Validation

  • Local PHPUnit (PHP 8.4): 67 tests / 118 assertions, green.
  • Signed-off-by and GPG signature on commit.

Deployment and risk

Do not auto-recalculate or amend historical financial documents. This library is used to prepare cooperado payments. The consuming application must reconcile historical differences with accounting and approve any retroactive action. The existing 20% INSS default rate is unchanged by this PR; its applicability to remuneration by a worker cooperative still needs separate legal/accounting review.

Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
@vitormattos
vitormattos merged commit 7229a75 into main Oct 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant