check tax profile and member poup

This commit is contained in:
phyusin
2018-03-23 13:54:19 +06:30
parent 7350a24a5d
commit 3e8c3f8225
4 changed files with 32 additions and 11 deletions

View File

@@ -248,6 +248,8 @@ class Origami::PaymentsController < BaseOrigamiController
@shop = Shop::ShopDetail #show shop info
@customer_lists = Customer.where("customer_id = 'CUS-000000000001' or customer_id = 'CUS-000000000002'")
saleObj = Sale.find(sale_id)
#total customer with individual total amount
@@ -297,10 +299,11 @@ class Origami::PaymentsController < BaseOrigamiController
#get customer amount
@customer = Customer.find(@sale_data.customer_id)
accounts = @customer.tax_profiles
# accounts = @customer.tax_profiles
accounts = TaxProfile.where("group_type = ?",@cashier_type).order("order_by ASC")
@account_arr =[]
accounts.each do |acc|
account = TaxProfile.find(acc)
account = TaxProfile.find(acc.id)
@account_arr.push(account)
end