mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for profit/loss request
This commit is contained in:
parent
c131cfcd1e
commit
5a7b032975
@ -28,8 +28,8 @@ class ProfitLossRequest extends Request
|
|||||||
public function rules()
|
public function rules()
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'start_date' => 'required_if:date_range,custom|string|date',
|
'start_date' => 'bail|nullable|required_if:date_range,custom|string|date',
|
||||||
'end_date' => '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_income_billed' => 'required|bail|bool',
|
||||||
'is_expense_billed' => 'bool',
|
'is_expense_billed' => 'bool',
|
||||||
'include_tax' => 'required|bail|bool',
|
'include_tax' => 'required|bail|bool',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user