PayrollPayoutBatchLine
One payslip in a payout batch, with its net pay as paid.
| Table | payroll_payout_batch_line |
| Tenant-scoped | Yes — extends TenantOwned |
| Columns | 3 |
| Relationships | 2 |
| Source | backend/src/main/java/com/motorph/payroll/model/PayrollPayoutBatchLine.java |
Columns
| Field | Type | Column | Null | Notes |
|---|---|---|---|---|
payoutBatchLineId | Integer | payout_batch_line_id | — | primary key, generated |
amount | BigDecimal | amount | — | — |
voidedAt | LocalDateTime | voided_at | 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 |
|---|---|---|---|---|
batch | @ManyToOne | PayrollPayoutBatch | payout_batch_id | Yes |
payslip | @ManyToOne | Payslip | payslip_id | Yes |
Referenced by
| Entity | Field | Kind |
|---|---|---|
| PayrollPayoutBatch | lines | @OneToMany |
Neighbourhood
Repository
PayrollPayoutBatchLineRepository
Declared over PayrollPayoutBatchLine with id type Integer. Source: backend/src/main/java/com/motorph/payroll/repository/PayrollPayoutBatchLineRepository.java
| Method | Returns | Notes |
|---|---|---|
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.
| Controller | Base path | Endpoints | Module |
|---|---|---|---|
| PayoutBatchController | /api/payroll | 7 | Payroll |
| PayrollRunReportsController | /api/payroll/{payrollId} | 5 | Payroll |
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/.