shop_code
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
class Reports::SaleitemController < BaseReportController
|
||||
authorize_resource :class => false
|
||||
def index
|
||||
|
||||
@shop = Shop.current_shop
|
||||
@account = Account.where("shop_code='#{@shop.shop_code}'")
|
||||
from, to = get_date_range_from_params
|
||||
|
||||
@@ -60,6 +60,7 @@ class Reports::SaleitemController < BaseReportController
|
||||
end
|
||||
|
||||
def show
|
||||
@shop = Shop.current_shop
|
||||
from, to, report_type = get_date_range_from_params
|
||||
@sale_data = Sale.get_by_shift_sale_by_item(from,to,Sale::SALE_STATUS_COMPLETED).where("shift_sales.shop_code='#{@shop.shop_code}'")
|
||||
|
||||
@@ -85,6 +86,7 @@ class Reports::SaleitemController < BaseReportController
|
||||
end
|
||||
|
||||
def print_sale_items
|
||||
@shop = Shop.current_shop
|
||||
from, to = get_date_range_from_params
|
||||
|
||||
shift_sale_range = ''
|
||||
|
||||
Reference in New Issue
Block a user