mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Support for negative expenses
This commit is contained in:
parent
d47251a475
commit
497a581bcd
@ -24,7 +24,7 @@ class CreateExpenseRequest extends Request
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'amount' => 'positive',
|
||||
'amount' => 'numeric',
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -24,7 +24,7 @@ class UpdateExpenseRequest extends Request
|
||||
public function rules()
|
||||
{
|
||||
return [
|
||||
'amount' => 'positive',
|
||||
'amount' => 'numeric',
|
||||
'expense_date' => 'required',
|
||||
];
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user