Skip to main content

WithholdingTaxBracket

BIR TRAIN withholding tax bracket for one pay period's table.

Tablewithholding_tax_brackets
Tenant-scopedNo — global table
Columns7
Relationships0
Sourcebackend/src/main/java/com/motorph/payroll/model/WithholdingTaxBracket.java
Not tenant-scoped

This entity does not extend TenantOwned, so its rows are shared across every tenant. TenantCoverageTest allows that only for tables deliberately declared global.

Columns​

FieldTypeColumnNullNotes
withholdingTaxBracketIdIntegerwithholding_tax_bracket_id—primary key, generated
payPeriodTaxPayPeriodpay_period—enum
taxableIncomeFromBigDecimaltaxable_income_from——
taxableIncomeToBigDecimaltaxable_income_to——
baseTaxBigDecimalbase_tax——
rateOnExcessBigDecimalrate_on_excess——
effectiveDateLocalDateeffective_date——

Repository​

WithholdingTaxBracketRepository​

Declared over WithholdingTaxBracket with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/WithholdingTaxBracketRepository.java

MethodReturnsNotes
findAllByOrderByPayPeriodAscTaxableIncomeFromAsc()List<WithholdingTaxBracket>derived
findAllByEffectiveDate(LocalDate effectiveDate)List<WithholdingTaxBracket>derived
findBracketAsOf(@Param("income") BigDecimal income, @Param("asOf") LocalDate asOf, @Param("payPeriod") TaxPayPeriod payPeriod)Optional<WithholdingTaxBracket>explicit @Query
findBracketInEarliestCohort(@Param("income") BigDecimal income, @Param("payPeriod") TaxPayPeriod payPeriod)Optional<WithholdingTaxBracket>explicit @Query
findDistinctEffectiveDates()List<LocalDate>explicit @Query
findDistinctEffectiveDates(@Param("payPeriod") TaxPayPeriod payPeriod)List<LocalDate>explicit @Query

Reached by​

These controllers hold — directly or through a service they depend on — a repository over WithholdingTaxBracket.

ControllerBase pathEndpointsModule
DemoDataController/api/system-admin/demo-data3Billing & Platform
GovernmentFormsController/api/government-forms8PH Statutory
PayrollController/api/payroll8Payroll
PayrollSettingsController/api/payroll-settings4Payroll
ReportingController/api/reports16Platform Misc
WithholdingTaxBracketController/api/withholding-tax-brackets8PH Statutory

Generated page

This page is rebuilt from the source on every docs build by docs-site/scripts/gen-code-wiki.mjs. Editing it has no effect — change the code, or, if what you want to say is prose, write it in docs/.