update sale item report

This commit is contained in:
Aung Myo
2017-11-24 18:57:01 +06:30
parent 479a6b5a61
commit b49f46a5c2
5 changed files with 53 additions and 23 deletions

View File

@@ -16,7 +16,8 @@ class Reports::SaleitemController < BaseReportController
end
end
@sale_data, @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)
puts @sale_data.to_json
puts "SSSSSSSSSSS"
@account_cate_count = Hash.new {|hash, key| hash[key] = 0}