add override sale tax for member discount

This commit is contained in:
phyusin
2018-05-30 10:20:36 +06:30
parent fee2a0431f
commit a9070ebe0d
4 changed files with 8 additions and 7 deletions

View File

@@ -270,7 +270,7 @@ class SalePayment < ApplicationRecord
def self.get_sale_payments_by_card(sale_payments)
# Check for Card Payment
sale_payments.each do |sp|
if sp.payment_method == "jcb" || sp.payment_method == "mpu" || sp.payment_method == "visa" || sp.payment_method == "master"
if sp.payment_method == "jcb" || sp.payment_method == "mpu" || sp.payment_method == "visa" || sp.payment_method == "master" || sp.payment_method == "unionpay" || sp.payment_method == "alipay"
return true;
end
end