-
This commit is contained in:
@@ -2,7 +2,7 @@ class Reports::ShiftsaleController < BaseReportController
|
||||
authorize_resource :class => false
|
||||
|
||||
def index
|
||||
|
||||
|
||||
from, to = get_date_range_from_params
|
||||
@shift = ''
|
||||
if params[:shift_name].to_i != 0
|
||||
@@ -26,7 +26,7 @@ class Reports::ShiftsaleController < BaseReportController
|
||||
end
|
||||
|
||||
def show
|
||||
|
||||
|
||||
from, to = 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}'")
|
||||
@@ -50,7 +50,7 @@ class Reports::ShiftsaleController < BaseReportController
|
||||
end
|
||||
|
||||
def print_close_receipt
|
||||
|
||||
|
||||
shift_id = params[:id]
|
||||
@shift = ShiftSale.find_by_id(shift_id)
|
||||
shift_obj = ShiftSale.where('id =?',shift_id)
|
||||
|
||||
Reference in New Issue
Block a user