check route in product sale

This commit is contained in:
phyusin
2018-02-26 11:33:51 +06:30
parent 5523ff6fc1
commit 0f36e44d1c
2 changed files with 94 additions and 106 deletions

View File

@@ -2,11 +2,8 @@ class Reports::ProductSaleController < BaseReportController
authorize_resource :class => false
def index
@order_by = 'desc'
if !params[:order_by].nil?
@order_by = params[:order_by]
end
@order_by = params[:order_by]
@sale_data = Sale.get_menu_item_query(@order_by)
# get printer info