Skip to main content

PayslipDeductionItem

Itemized custom-deduction line generated for a payslip.

Tablepayslip_deduction_items
Tenant-scopedYes — extends TenantOwned
Columns4
Relationships2
Sourcebackend/src/main/java/com/motorph/payroll/model/PayslipDeductionItem.java

Columns​

FieldTypeColumnNullNotes
payslipDeductionItemIdIntegerpayslip_deduction_item_id—primary key, generated
labelStringlabel——
amountBigDecimalamount——
createdDateLocalDateTimecreated_date——

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
payslip@ManyToOnePayslippayslip_idYes
employeeDeduction@ManyToOneEmployeeDeductionemployee_deduction_id—

Neighbourhood​

Repository​

PayslipDeductionItemRepository​

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

MethodReturnsNotes
findAllByPayslip_PayslipIdOrderByPayslipDeductionItemIdAsc(Integer payslipId)List<PayslipDeductionItem>derived
findAllByPayslip_PayslipIdInOrderByPayslipDeductionItemIdAsc(Collection<Integer> payslipIds)List<PayslipDeductionItem>derived
findMonthToDateAppliedAmount(@Param("employeeDeductionId") Integer employeeDeductionId, @Param("year") int year, @Param("month") int month)BigDecimalexplicit @Query

Reached by​

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

ControllerBase pathEndpointsModule
DemoDataController/api/system-admin/demo-data3Billing & Platform
PayrollController/api/payroll8Payroll
PayslipController/api/payslips6Payroll

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