diff --git a/app/models/tax_profile.rb b/app/models/tax_profile.rb index e561b4e5..5d85239d 100755 --- a/app/models/tax_profile.rb +++ b/app/models/tax_profile.rb @@ -12,10 +12,10 @@ class TaxProfile < ApplicationRecord tax_profiles.each do |tax| #include or execulive if tax.inclusive - rate = tax.rate + rate = tax.rate.to_f divided_value += (100 + rate)/rate else - exclusive +=tax.rate / 100 + exclusive += tax.rate.to_f / 100 end end end