mirror of
https://github.com/internetee/registry.git
synced 2025-08-04 00:42:04 +02:00
Add account activity to registrar
This commit is contained in:
parent
f2f2e42608
commit
32073ca862
15 changed files with 117 additions and 32 deletions
|
@ -4,7 +4,10 @@ class Registrar::InvoicesController < RegistrarController
|
|||
before_action :set_invoice, only: [:show]
|
||||
|
||||
def index
|
||||
@invoices = current_user.registrar.invoices.includes(:invoice_items).order(id: :desc)
|
||||
invoices = current_user.registrar.invoices.includes(:invoice_items, :account_activity)
|
||||
@q = invoices.search(params[:q])
|
||||
@q.sorts = 'id desc' if @q.sorts.empty?
|
||||
@invoices = @q.result.page(params[:page])
|
||||
end
|
||||
|
||||
def show
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue