Skip to main content

PayrollPayoutBatchLine

One payslip in a payout batch, with its net pay as paid.

Tablepayroll_payout_batch_line
Tenant-scopedYes — extends TenantOwned
Columns3
Relationships2
Sourcebackend/src/main/java/com/motorph/payroll/model/PayrollPayoutBatchLine.java

Columns​

FieldTypeColumnNullNotes
payoutBatchLineIdIntegerpayout_batch_line_id—primary key, generated
amountBigDecimalamount——
voidedAtLocalDateTimevoided_atYes—

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
batch@ManyToOnePayrollPayoutBatchpayout_batch_idYes
payslip@ManyToOnePayslippayslip_idYes

Referenced by​

EntityFieldKind
PayrollPayoutBatchlines@OneToMany

Neighbourhood​

Repository​

PayrollPayoutBatchLineRepository​

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

MethodReturnsNotes
findLiveByPayslipIds(@Param("payslipIds") Collection<Integer> payslipIds)List<PayrollPayoutBatchLine>explicit @Query
findAllByBatchWithPayslip(@Param("batchId") Integer batchId)List<PayrollPayoutBatchLine>explicit @Query

Reached by​

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

ControllerBase pathEndpointsModule
PayoutBatchController/api/payroll7Payroll
PayrollRunReportsController/api/payroll/{payrollId}5Payroll

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