This commit is contained in:
Myat Zin Wai Maw
2020-01-22 14:26:14 +06:30
parent 0df7357cc9
commit fae91f701b
6 changed files with 18 additions and 5 deletions

View File

@@ -462,7 +462,8 @@ class Sale < ApplicationRecord
tax_profiles = unique_tax_profiles(order_source, self.customer_id)
if tax_type.nil?
if tax_profiles.count == 2
#in previous >> if tax_profiles.count ==2
if tax_profiles.count >= 2
tax_type = "all"
elsif tax_profiles.count == 1
if tax_profiles.name.downcase == "service charges"