fix search order on transaction

This commit is contained in:
nyanlinhtut
2023-04-21 15:14:31 +06:30
parent 7578286ee4
commit e1a5eda163
2 changed files with 6 additions and 4 deletions

View File

@@ -345,7 +345,7 @@ class Order < ApplicationRecord
end
def self.search(filter,from,to)
def self.search(filter,from=nil,to=nil)
if filter.blank?
keyword = ''
else