Skip to main content

FringeBenefit

A fringe benefit given to an employee, at its monetary value under RR 3-98.

Tablefringe_benefit
Tenant-scopedYes — extends TenantOwned
Columns10
Relationships1
Sourcebackend/src/main/java/com/motorph/payroll/model/FringeBenefit.java

Columns​

FieldTypeColumnNullNotes
fringeBenefitIdIntegerfringe_benefit_id—primary key, generated
benefitDateLocalDatebenefit_date——
benefitTypeFringeBenefitTypebenefit_type—enum
descriptionStringdescriptionYes—
monetaryValueBigDecimalmonetary_value——
recipientClassFringeRecipientClassrecipient_class—enum
createdByStringcreated_byYes—
createdDateLocalDateTimecreated_date——
lastModifiedByStringlast_modified_byYes—
lastModifiedDateLocalDateTimelast_modified_dateYes—

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​

FieldKindTargetJoin columnRequired
employee@ManyToOneEmployeeemployee_numberYes

Neighbourhood​

Repository​

FringeBenefitRepository​

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

MethodReturnsNotes
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.

ControllerBase pathEndpointsModule
WithholdingRegistryController/api6PH 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/.