From 3f97f30c36732f4b7ba7dfa32c667f414e4ff281 Mon Sep 17 00:00:00 2001 From: Zin Moe Date: Tue, 14 Jul 2020 18:21:19 +0630 Subject: [PATCH] modify tax calculation --- app/models/tax_profile.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/tax_profile.rb b/app/models/tax_profile.rb index f06270e6..b531cd5c 100755 --- a/app/models/tax_profile.rb +++ b/app/models/tax_profile.rb @@ -14,7 +14,7 @@ class TaxProfile < ApplicationRecord #include or execulive if tax.inclusive rate = tax.rate.to_f - divided_value += (100 + rate)/rate + divided_value += rate / (100 + rate) else exclusive += tax.rate.to_f / 100 end