product sale

This commit is contained in:
phyusin
2018-02-27 10:27:52 +06:30
parent 90b7a7f201
commit 700ff91127
2 changed files with 7 additions and 1 deletions

View File

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