diff --git a/app/controllers/reports/receipt_no_controller.rb b/app/controllers/reports/receipt_no_controller.rb index 9564bfe1..1b449f4c 100755 --- a/app/controllers/reports/receipt_no_controller.rb +++ b/app/controllers/reports/receipt_no_controller.rb @@ -41,7 +41,8 @@ authorize_resource :class => false def show from, to = get_date_range_from_params - +puts from +puts to @sale_data = Sale.get_by_shift_sale(from,to,Sale::SALE_STATUS_COMPLETED) date_arr = Array.new diff --git a/app/views/reports/receipt_no/index.html.erb b/app/views/reports/receipt_no/index.html.erb index 1d613fdf..99330ae9 100755 --- a/app/views/reports/receipt_no/index.html.erb +++ b/app/views/reports/receipt_no/index.html.erb @@ -165,7 +165,8 @@ var to = to_date.getDate() + "-" + to_date.getMonth() + "-" + to_date.getFullYear(); var from_date = new Date($('#from').val()); var from = from_date.getDate() + "-" + from_date.getMonth() + "-" + from_date.getFullYear(); - + $('#from').val(from) + $('#to').val(to) var period = 0; var period_type = 1; @@ -174,7 +175,6 @@ check_arr.push(to); - console.log(check_arr.length) if(check_arr.length == 1){ show_shift_name(period,period_type,from,to,'shift_item'); } diff --git a/app/views/reports/shiftsale/index.xls.erb b/app/views/reports/shiftsale/index.xls.erb index 2730b901..aa1d0231 100755 --- a/app/views/reports/shiftsale/index.xls.erb +++ b/app/views/reports/shiftsale/index.xls.erb @@ -1,6 +1,6 @@ -