mirror of
https://github.com/internetee/registry.git
synced 2025-06-10 06:34:46 +02:00
parent
7d72d9cb34
commit
4a63a60433
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ class Registry
|
|||
include Singleton
|
||||
|
||||
def vat_rate
|
||||
Setting.registry_vat_prc
|
||||
Setting.registry_vat_prc.to_d * 100
|
||||
end
|
||||
|
||||
def legal_address_country
|
||||
|
|
|
@ -10,7 +10,7 @@ class RegistryTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
def test_vat_rate
|
||||
Setting.registry_vat_prc = 0.2
|
||||
assert 0.2, @registry.vat_rate
|
||||
Setting.registry_vat_prc = 0.25
|
||||
assert_equal BigDecimal(25), @registry.vat_rate
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue