product sale
This commit is contained in:
@@ -2,7 +2,10 @@ class Reports::ProductSaleController < BaseReportController
|
|||||||
authorize_resource :class => false
|
authorize_resource :class => false
|
||||||
|
|
||||||
def index
|
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)
|
@sale_data = Sale.get_menu_item_query(@order_by)
|
||||||
|
|
||||||
|
|||||||
@@ -122,6 +122,9 @@
|
|||||||
<li>
|
<li>
|
||||||
<a href="<%= reports_saleitem_index_path %>">Sale Items</a>
|
<a href="<%= reports_saleitem_index_path %>">Sale Items</a>
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<a href="<%= reports_product_sale_index_path %>">Product Sale</a>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<a href="<%= reports_receipt_no_index_path %>">Receipt</a>
|
<a href="<%= reports_receipt_no_index_path %>">Receipt</a>
|
||||||
</li>
|
</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user