mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 23:44:28 -04:00
Fix for should be invoiced option on expense
This commit is contained in:
parent
19b443d641
commit
d2c0003ec9
@ -131,7 +131,7 @@ class ExpenseRepository extends BaseRepository
|
||||
$expense->private_notes = trim($input['private_notes']);
|
||||
}
|
||||
$expense->public_notes = trim($input['public_notes']);
|
||||
$expense->should_be_invoiced = isset($input['should_be_invoiced']) || $expense->client_id ? true : false;
|
||||
$expense->should_be_invoiced = floatval($input['should_be_invoiced']) || $expense->client_id ? true : false;
|
||||
|
||||
if ( ! $expense->expense_currency_id) {
|
||||
$expense->expense_currency_id = \Auth::user()->account->getCurrencyId();
|
||||
|
Loading…
x
Reference in New Issue
Block a user