Skip to main content

WorkSuspension

A government-declared work suspension (calamity/weather "walang pasok" advisory), distinct from the national holiday calendar.

Tablework_suspensions
Tenant-scopedYes — extends TenantOwned
Columns5
Relationships0
Sourcebackend/src/main/java/com/motorph/payroll/model/WorkSuspension.java

Columns​

FieldTypeColumnNullNotes
suspensionIdIntegersuspension_id—primary key, generated
suspensionDateLocalDatesuspension_date—unique
reasonStringreason——
createdByStringcreated_byYes—
createdDateLocalDateTimecreated_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.

Repository​

WorkSuspensionRepository​

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

MethodReturnsNotes
findAllBySuspensionDateBetweenOrderBySuspensionDateAsc(LocalDate from, LocalDate to)List<WorkSuspension>derived
existsBySuspensionDate(LocalDate suspensionDate)booleanderived
findAllByOrderBySuspensionDateDesc()List<WorkSuspension>derived

Reached by​

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

ControllerBase pathEndpointsModule
DemoDataController/api/system-admin/demo-data3Billing & Platform
PayrollController/api/payroll8Payroll
RecognitionAwardController/api/recognition-awards7HR
WorkSuspensionController/api/work-suspensions3HR

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