Read NFC
This commit is contained in:
@@ -9,9 +9,9 @@ class Transactions::OrdersController < ApplicationController
|
||||
to = params[:to]
|
||||
|
||||
if filter.nil? && from.nil? && to.nil?
|
||||
orders = Order.where("shop_code='#{@shop.shop_code}'").order("order_id desc")
|
||||
orders = Order.order("order_id desc")
|
||||
else
|
||||
orders = Order.search(filter,from,to).where("orders.shop_code='#{@shop.shop_code}'")
|
||||
orders = Order.search(filter,from,to)
|
||||
end
|
||||
|
||||
if !orders.nil?
|
||||
|
||||
Reference in New Issue
Block a user