From 204f622876241bf5221cfbacb0865af2cd588daa Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Wed, 28 Mar 2018 11:10:37 +0630 Subject: [PATCH] update sale item report --- .../reports/saleitem_controller.rb | 3 +-- .../_shift_sale_report_filter.html.erb | 2 +- app/views/reports/saleitem/index.html.erb | 23 +++++++++++++------ 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/app/controllers/reports/saleitem_controller.rb b/app/controllers/reports/saleitem_controller.rb index a731cb44..24c812eb 100755 --- a/app/controllers/reports/saleitem_controller.rb +++ b/app/controllers/reports/saleitem_controller.rb @@ -17,8 +17,7 @@ class Reports::SaleitemController < BaseReportController end @type = params[:sale_type] @sale_data, @other_charges,@discount_data , @cash_data , @card_data , @credit_data , @foc_data , @grand_total , @change_amount = Sale.get_by_shift_items(shift_sale_range,shift, from, to, Sale::SALE_STATUS_COMPLETED,@type) -puts @other_charges.to_json -puts "oooooooooooooooooooooooo" + @sale_taxes = Sale.get_separate_tax(shift_sale_range,shift,from,to,nil) @account_cate_count = Hash.new {|hash, key| hash[key] = 0} diff --git a/app/views/reports/saleitem/_shift_sale_report_filter.html.erb b/app/views/reports/saleitem/_shift_sale_report_filter.html.erb index 75a331e9..068a3f58 100755 --- a/app/views/reports/saleitem/_shift_sale_report_filter.html.erb +++ b/app/views/reports/saleitem/_shift_sale_report_filter.html.erb @@ -22,7 +22,7 @@