diff --git a/app/Http/Requests/PrintStatementRequest.php b/app/Http/Requests/PrintStatementRequest.php index 30b704c..aa087e6 100644 --- a/app/Http/Requests/PrintStatementRequest.php +++ b/app/Http/Requests/PrintStatementRequest.php @@ -45,11 +45,11 @@ class PrintStatementRequest extends FormRequest // Password wajib diisi jika request_type diisi 'password' => [ function ($attribute, $value, $fail) { - $requestType = $this->input('request_type'); + $requestType = $this->input('stmt_sent_type'); // Jika request_type diisi, maka password wajib diisi if (!empty($requestType) && empty($value)) { - $fail('Password is required when request type is specified.'); + $fail('Password is required when statement sent type is specified.'); } } ], @@ -120,7 +120,7 @@ class PrintStatementRequest extends FormRequest 'period_to.regex' => 'End period must be in YYYYMM format', 'period_to.gte' => 'End period must be after or equal to start period', 'request_type.in' => 'Request type must be single_account, branch, all_branches, or multi_account', - 'password.required' => 'Password is required when request type is specified', + 'password.required' => 'Password is required when statement sent type is specified', ]; }