Fix: add payslip relationship on PayrollEntry and update titleText brand setting

This commit is contained in:
2026-09-14 17:24:30 +08:00
parent 031eb2ddd7
commit fa6cc08830
3 changed files with 145 additions and 0 deletions

View File

@@ -66,6 +66,14 @@ class PayrollEntry extends BaseModel
return $this->belongsTo(PayrollRun::class);
}
/**
* Get the payslip for this payroll entry.
*/
public function payslip()
{
return $this->hasOne(Payslip::class, 'payroll_entry_id');
}
/**
* Get the employee.
*/