DeMinimisBenefitType
De minimis benefit type with its tax-exempt ceiling (RR 29-2025).
| Table | de_minimis_benefit_types |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 12 |
| Relationships | 0 |
| Source | backend/src/main/java/com/motorph/payroll/model/DeMinimisBenefitType.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
benefitTypeId | Integer | benefit_type_id | — | primary key, generated |
code | String | code | — | — |
name | String | name | — | — |
legalReference | String | legal_reference | Yes | — |
ceilingAmount | BigDecimal | ceiling_amount | — | — |
ceilingPeriod | String | ceiling_period | — | — |
employeeAllowanceField | String | employee_allowance_field | Yes | — |
statutory | Boolean | statutory | — | — |
active | Boolean | active | — | — |
createdDate | LocalDateTime | created_date | Yes | — |
lastModifiedBy | String | last_modified_by | Yes | — |
lastModifiedDate | LocalDateTime | last_modified_date | Yes | — |
Plus tenant_id, inherited from TenantOwned. Hibernate stamps it on insert and adds where tenant_id = ? to every query, so it is never written or read by application code.
Repository
DeMinimisBenefitTypeRepository
Declared over DeMinimisBenefitType with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/DeMinimisBenefitTypeRepository.java
| Method | Returns | Notes |
|---|---|---|
findAllByOrderByCodeAsc() | List<DeMinimisBenefitType> | derived |
findByCode(String code) | Optional<DeMinimisBenefitType> | derived |
findByEmployeeAllowanceFieldAndActiveTrue(String employeeAllowanceField) | Optional<DeMinimisBenefitType> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over DeMinimisBenefitType.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| DeMinimisBenefitTypeController | /api/de-minimis-benefit-types | 4 | Payroll |
| DemoDataController | /api/system-admin/demo-data | 3 | Billing & Platform |
| PayrollController | /api/payroll | 8 | Payroll |
| PayrollSettingsController | /api/payroll-settings | 4 | Payroll |
| PublicSignupController | /api/public/signup | 2 | Billing & Platform |
| TenantAdminController | /api/admin/tenants | 7 | Billing & Platform |
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/.