shop code
This commit is contained in:
@@ -2,7 +2,7 @@ class Reports::StockCheckController < BaseReportController
|
||||
# authorize_resource :class => false
|
||||
|
||||
def index
|
||||
@shop = Shop.current_shop
|
||||
|
||||
# from_date = DateTime.now.beginning_of_day.utc.getlocal
|
||||
# to_date = DateTime.now.end_of_day.utc.getlocal
|
||||
# unless params[:daterange].blank?
|
||||
@@ -26,7 +26,7 @@ class Reports::StockCheckController < BaseReportController
|
||||
end
|
||||
|
||||
def show
|
||||
@shop = Shop.current_shop
|
||||
|
||||
from, to = get_date_range_from_params
|
||||
|
||||
@sale_data = Sale.get_by_shift_sale(from,to,Sale::SALE_STATUS_COMPLETED).where("shift_sales.shop_code='#{@shop.shop_code}'")
|
||||
|
||||
Reference in New Issue
Block a user