Fix: add payslip relationship on PayrollEntry and update titleText brand setting
This commit is contained in:
@@ -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.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user