update sale item reoprt for item dis and foc

This commit is contained in:
Aung Myo
2017-12-05 18:19:18 +06:30
parent 97bb6ae211
commit f4a7e1baa0
3 changed files with 11 additions and 10 deletions

View File

@@ -18,7 +18,7 @@ class Reports::SaleitemController < BaseReportController
@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)
@sale_taxes = Sale.get_separate_tax(shift_sale_range,shift,from,to,nil)
puts @sale_taxes.to_json
puts @sale_data.to_json
@account_cate_count = Hash.new {|hash, key| hash[key] = 0}