PhilhealthContributionRate
The PhilhealthContributionRate entity, mapped to the philhealth_contribution_rates table.
| Table | philhealth_contribution_rates |
| Tenant-scoped | No — global table |
| Columns | 6 |
| Relationships | 0 |
| Source | backend/src/main/java/com/motorph/payroll/model/PhilhealthContributionRate.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
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
contributionRateId | Integer | contribution_rate_id | — | primary key, generated |
salaryBracketFrom | BigDecimal | salary_bracket_from | — | — |
salaryBracketTo | BigDecimal | salary_bracket_to | — | — |
employeeShare | BigDecimal | employee_share | — | — |
employerShare | BigDecimal | employer_share | — | — |
effectiveDate | LocalDate | effective_date | — | — |
Repository
PhilhealthContributionRateRepository
Declared over PhilhealthContributionRate with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/PhilhealthContributionRateRepository.java
| Method | Returns | Notes |
|---|---|---|
findAllByOrderBySalaryBracketFromAsc() | List<PhilhealthContributionRate> | derived |
findAllByEffectiveDate(LocalDate effectiveDate) | List<PhilhealthContributionRate> | derived |
findBracketsAsOf(@Param("salary") BigDecimal salary, @Param("asOf") LocalDate asOf) | List<PhilhealthContributionRate> | explicit @Query |
findBracketAsOf(BigDecimal salary, LocalDate asOf) | Optional<PhilhealthContributionRate> | derived |
findBracketsInEarliestCohort(@Param("salary") BigDecimal salary) | List<PhilhealthContributionRate> | explicit @Query |
findBracketInEarliestCohort(BigDecimal salary) | Optional<PhilhealthContributionRate> | derived |
findDistinctEffectiveDates() | List<LocalDate> | explicit @Query |
Reached by
These controllers hold — directly or through a service they depend on — a repository over PhilhealthContributionRate.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| DemoDataController | /api/system-admin/demo-data | 3 | Billing & Platform |
| GovernmentFormsController | /api/government-forms | 8 | PH Statutory |
| PayrollController | /api/payroll | 8 | Payroll |
| PayrollSettingsController | /api/payroll-settings | 4 | Payroll |
| PhilhealthContributionRateController | /api/philhealth-contribution-rates | 8 | PH 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/.