update sale item report

This commit is contained in:
Aung Myo
2018-03-28 11:10:37 +06:30
parent f126d2faf6
commit 204f622876
3 changed files with 18 additions and 10 deletions

View File

@@ -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}