add Old Town req:
This commit is contained in:
18
app/controllers/reports/product_sale_controller.rb
Executable file
18
app/controllers/reports/product_sale_controller.rb
Executable file
@@ -0,0 +1,18 @@
|
||||
class Reports::ProductSaleController < BaseReportController
|
||||
authorize_resource :class => false
|
||||
|
||||
def index
|
||||
@order_by = params[: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
|
||||
end
|
||||
Reference in New Issue
Block a user