FringeBenefit
A fringe benefit given to an employee, at its monetary value under RR 3-98.
| Table | fringe_benefit |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 10 |
| Relationships | 1 |
| Source | backend/src/main/java/com/motorph/payroll/model/FringeBenefit.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
fringeBenefitId | Integer | fringe_benefit_id | — | primary key, generated |
benefitDate | LocalDate | benefit_date | — | — |
benefitType | FringeBenefitType | benefit_type | — | enum |
description | String | description | Yes | — |
monetaryValue | BigDecimal | monetary_value | — | — |
recipientClass | FringeRecipientClass | recipient_class | — | enum |
createdBy | String | created_by | Yes | — |
createdDate | LocalDateTime | created_date | — | — |
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.
Relationships
| Field | Kind | Target | Join column | Required |
|---|---|---|---|---|
employee | @ManyToOne | Employee | employee_number | Yes |
Neighbourhood
Repository
FringeBenefitRepository
Declared over FringeBenefit with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/FringeBenefitRepository.java
| Method | Returns | Notes |
|---|---|---|
findAllByBenefitDateBetweenOrderByBenefitDateAscFringeBenefitIdAsc(LocalDate from, LocalDate to) | List<FringeBenefit> | derived |
Reached by
These controllers hold — directly or through a service they depend on — a repository over FringeBenefit.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| WithholdingRegistryController | /api | 6 | 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/.