mirror of
https://github.com/internetee/registry.git
synced 2025-06-11 23:24:48 +02:00
fixed receipt date filter error
This commit is contained in:
parent
d0eec1da3e
commit
1371d9e159
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ module Admin
|
|||
date_from = date_from_param ? Time.zone.parse(date_from_param) : -Float::INFINITY
|
||||
|
||||
date_until_param = params[:q][:receipt_date_lteq] if params[:q][:receipt_date_lteq].present?
|
||||
date_until = date_until_param ? Time.zone.parse(date_from_param) : Float::INFINITY
|
||||
date_until = date_until_param ? Time.zone.parse(date_until_param) : Float::INFINITY
|
||||
|
||||
invoices.where(account_activities: { created_at: date_from..date_until })
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue