mirror of
https://github.com/internetee/registry.git
synced 2025-07-21 10:16:01 +02:00
Story#112050051 - extend ransack to sort invoices by custom scopes
This commit is contained in:
parent
0ce6b84ddf
commit
db6f78ede4
3 changed files with 54 additions and 2 deletions
|
@ -12,9 +12,9 @@
|
|||
%th{class: 'col-xs-3'}
|
||||
= sort_link(@q, :buyer_name, "Buyer")
|
||||
%th{class: 'col-xs-3'}
|
||||
= sort_link(@q, :due_date)
|
||||
= sort_link(@q, :sort_due_date, "Due date")
|
||||
%th{class: 'col-xs-3'}
|
||||
= sort_link(@q, :account_activity_created_at, "Receipt date")
|
||||
= sort_link(@q, :sort_receipt_date, "Receipt date")
|
||||
%tbody
|
||||
- @invoices.each do |x|
|
||||
%tr
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue