change tax in qrpay precreate
This commit is contained in:
@@ -35,6 +35,18 @@ class Foodcourt::QrpayController < BaseFoodcourtController
|
||||
@member_discount = MembershipSetting.find_by_discount(1)
|
||||
@membership_rebate_balance=0
|
||||
|
||||
@changable_tax = true
|
||||
lookup_changable_tax = Lookup.collection_of('changable_tax')
|
||||
if !lookup_changable_tax.empty?
|
||||
lookup_changable_tax.each do |changable_tax|
|
||||
if changable_tax[0].downcase == "change"
|
||||
if changable_tax[1] == '0'
|
||||
@changable_tax = false
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if Sale.exists?(sale_id)
|
||||
begin
|
||||
@cash = 0.0
|
||||
|
||||
Reference in New Issue
Block a user