Skip to content

Commit

Permalink
fixed #177
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Feb 7, 2018
1 parent d6540a3 commit e3e6a08
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/Models/Expense/Bill.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ class Bill extends Model
*
* @var array
*/
public $sortable = ['bill_number', 'vendor_name', 'amount', 'status.name', 'billed_at', 'due_at'];
public $sortable = ['bill_number', 'vendor_name', 'amount', 'status.name', 'billed_at', 'due_at', 'bill_status_code'];

/**
* Searchable rules.
Expand Down
2 changes: 1 addition & 1 deletion app/Models/Income/Invoice.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Invoice extends Model
*
* @var array
*/
public $sortable = ['invoice_number', 'customer_name', 'amount', 'status' , 'invoiced_at', 'due_at'];
public $sortable = ['invoice_number', 'customer_name', 'amount', 'status' , 'invoiced_at', 'due_at', 'invoice_status_code'];

/**
* Searchable rules.
Expand Down
2 changes: 1 addition & 1 deletion config/columnsortable.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/
'columns' => [
'alpha' => [
'rows' => ['name', 'customer_name', 'vendor_name', 'display_name', 'company_name', 'domain', 'email', 'description', 'code', 'type', 'status', 'vendor', 'account'],
'rows' => ['name', 'customer_name', 'vendor_name', 'display_name', 'company_name', 'domain', 'email', 'description', 'code', 'type', 'status', 'vendor', 'account', 'bill_status_code', 'invoice_status_code'],
'class' => 'fa fa-sort-alpha',
],
'amount' => [
Expand Down
2 changes: 1 addition & 1 deletion resources/views/expenses/bills/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
<th class="col-md-1">@sortablelink('amount', trans('general.amount'))</th>
<th class="col-md-2">@sortablelink('billed_at', trans('bills.bill_date'))</th>
<th class="col-md-2">@sortablelink('due_at', trans('bills.due_date'))</th>
<th class="col-md-1">@sortablelink('status.name', trans_choice('general.statuses', 1))</th>
<th class="col-md-1">@sortablelink('bill_status_code', trans_choice('general.statuses', 1))</th>
<th class="col-md-1 text-center">{{ trans('general.actions') }}</th>
</tr>
</thead>
Expand Down
2 changes: 1 addition & 1 deletion resources/views/incomes/invoices/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<th class="col-md-1">@sortablelink('amount', trans('general.amount'))</th>
<th class="col-md-2">@sortablelink('invoiced_at', trans('invoices.invoice_date'))</th>
<th class="col-md-2">@sortablelink('due_at', trans('invoices.due_date'))</th>
<th class="col-md-1">@sortablelink('status.name', trans_choice('general.statuses', 1))</th>
<th class="col-md-1">@sortablelink('invoice_status_code', trans_choice('general.statuses', 1))</th>
<th class="col-md-1 text-center">{{ trans('general.actions') }}</th>
</tr>
</thead>
Expand Down

0 comments on commit e3e6a08

Please sign in to comment.