1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 05:02:36 +01:00

Fix client portal status sorting

This commit is contained in:
Hillel Coren 2017-08-11 12:31:27 +03:00
parent d88a07e88d
commit 2d5d2cbb54

View File

@ -327,7 +327,7 @@ class InvoiceRepository extends BaseRepository
return $table->addColumn('due_date', function ($model) {
return Utils::fromSqlDate($model->due_date);
})
->addColumn('status', function ($model) use ($entityType) {
->addColumn('invoice_status_id', function ($model) use ($entityType) {
if ($model->invoice_status_id == INVOICE_STATUS_PAID) {
$label = trans('texts.status_paid');
$class = 'success';