mirror of
https://github.com/internetee/registry.git
synced 2025-07-28 05:26:17 +02:00
Fixed codeclimate issue
This commit is contained in:
parent
1ab66e68df
commit
7e394e5522
1 changed files with 2 additions and 0 deletions
|
@ -81,6 +81,7 @@ module Admin
|
|||
payment_order.update(notes: 'Cancelled')
|
||||
end
|
||||
|
||||
# rubocop:disable Metrics/MethodLength
|
||||
def filter_by_status
|
||||
case params[:status]
|
||||
when 'Paid'
|
||||
|
@ -97,6 +98,7 @@ module Admin
|
|||
Invoice.includes(:account_activity, :buyer)
|
||||
end
|
||||
end
|
||||
# rubocop:enable Metrics/MethodLength
|
||||
|
||||
def filter_by_receipt_date(invoices)
|
||||
date_from_param = params[:q][:receipt_date_gteq] if params[:q][:receipt_date_gteq].present?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue