check product sale report

This commit is contained in:
phyusin
2018-02-26 11:24:47 +06:30
parent 7043eccb73
commit 5523ff6fc1
7 changed files with 125 additions and 130 deletions

View File

@@ -2,18 +2,19 @@ class Reports::ProductSaleController < BaseReportController
authorize_resource :class => false
def index
order_by = 'desc'
@order_by = 'desc'
if !params[:order_by].nil?
order_by = params[:order_by]
@order_by = params[:order_by]
end
@sale_data = Sale.get_menu_item_query(order_by)
@sale_data = Sale.get_menu_item_query(@order_by)
# get printer info
@print_settings = PrintSetting.get_precision_delimiter()
respond_to do |format|
format.html
format.json
format.xls
end
end