modify tax calculation
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user