mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-09 20:52:56 +01:00
Fix for expense transformer
This commit is contained in:
parent
396d4dc535
commit
a3f43a09e7
@ -69,7 +69,7 @@ class ExpenseTransformer extends EntityTransformer
|
||||
'archived_at' => $this->getTimestamp($expense->deleted_at),
|
||||
'transaction_id' => $expense->transaction_id ?: '',
|
||||
'transaction_reference' => $expense->transaction_reference ?: '',
|
||||
'bank_id' => $expense->bank_id ?: '',
|
||||
'bank_id' => (int) ($expense->bank_id ?: 0),
|
||||
'expense_currency_id' => (int) ($expense->expense_currency_id ?: 0),
|
||||
'expense_category_id' => $expense->expense_category ? (int) $expense->expense_category->public_id : 0,
|
||||
'amount' => (float) $expense->amount,
|
||||
|
Loading…
Reference in New Issue
Block a user