This commit is contained in:
Jagad R R
2025-03-05 13:45:02 +07:00
5 changed files with 20 additions and 20 deletions
@@ -123,7 +123,7 @@ class FormOtherController extends Controller
'tanggal' => 'required|date',
'keterangan' => 'required',
'total' => 'required|numeric|min:1',
'bukti_total' => ['nullable', 'file', 'max:51200', new FileType(['php', 'exe', 'js', 'sh', 'bat', 'exe', 'sh', 'php', 'vbs'])],
'bukti_total' => ['nullable', 'file', 'max:51200'],
]);
$startDate = date('Y-m-' . env('STARTING_DATE'));
@@ -286,7 +286,7 @@ class FormOtherController extends Controller
'tanggal' => 'required|date',
'keterangan' => 'required',
'total' => 'required|numeric|min:1|max:' . BudgetHelper::getAvailableBudget($cabang_id),
'bukti_total' => ['nullable', 'file', 'max:51200', new FileType(['php', 'exe', 'js', 'sh', 'bat', 'exe', 'sh', 'php', 'vbs'])],
'bukti_total' => ['nullable', 'file', 'max:51200'],
]);
if($form->status != 'On Progress' && $role == 'Medical Representatif') {