mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixed sorting expenses by status
This commit is contained in:
parent
a489c2cab8
commit
611d908112
@ -64,6 +64,7 @@ class ExpenseRepository extends BaseRepository
|
||||
->orWhere('contacts.is_primary', '=', null);
|
||||
})
|
||||
->select(
|
||||
DB::raw('COALESCE(expenses.invoice_id, expenses.should_be_invoiced) expense_status_id'),
|
||||
'expenses.account_id',
|
||||
'expenses.amount',
|
||||
'expenses.deleted_at',
|
||||
|
@ -106,7 +106,7 @@ class ExpenseService extends BaseService
|
||||
}
|
||||
],
|
||||
[
|
||||
'invoice_id',
|
||||
'expense_status_id',
|
||||
function ($model) {
|
||||
return self::getStatusLabel($model->invoice_id, $model->should_be_invoiced);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user