diff --git a/app/Http/Requests/Report/ProfitLossRequest.php b/app/Http/Requests/Report/ProfitLossRequest.php index 65dc03ce66b0..391be46f8cff 100644 --- a/app/Http/Requests/Report/ProfitLossRequest.php +++ b/app/Http/Requests/Report/ProfitLossRequest.php @@ -28,8 +28,8 @@ class ProfitLossRequest extends Request public function rules() { return [ - 'start_date' => 'required_if:date_range,custom|string|date', - 'end_date' => 'required_if:date_range,custom|string|date', + 'start_date' => 'bail|nullable|required_if:date_range,custom|string|date', + 'end_date' => 'bail|nullable|required_if:date_range,custom|string|date', 'is_income_billed' => 'required|bail|bool', 'is_expense_billed' => 'bool', 'include_tax' => 'required|bail|bool',