fixed receipt date filter error

This commit is contained in:
dinsmol 2021-10-06 12:03:59 +03:00
parent d0eec1da3e
commit 1371d9e159

View file

@ -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