fix: allow updating payroll entries during processing status
This commit is contained in:
@@ -285,8 +285,8 @@ class PayrollRunController extends Controller
|
||||
return redirect()->back()->with('error', __('Payroll entry not found.'));
|
||||
}
|
||||
|
||||
if ($payrollEntry->payrollRun->status !== 'draft') {
|
||||
return redirect()->back()->with('error', __('Cannot edit entry in a processed payroll run.'));
|
||||
if ($payrollEntry->payrollRun->status === 'completed') {
|
||||
return redirect()->back()->with('error', __('Cannot edit entry in a completed payroll run.'));
|
||||
}
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user