1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fixes for profit/loss request

This commit is contained in:
David Bomba 2022-12-14 16:41:05 +11:00
parent c131cfcd1e
commit 5a7b032975

View File

@ -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',