Skip to content

Commit

Permalink
Modul s DHP pro evropské země
Browse files Browse the repository at this point in the history
  • Loading branch information
bkutil committed Jun 9, 2019
1 parent 1767806 commit 873c98e
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions lib/libtooz/vat/country_rates.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
module Libtooz
module Vat
module CountryRates
STANDARD_VAT_RATES_BY_COUNTRY = {
at: 20, # Austria
be: 21, # Belgium
bg: 20, # Bulgaria
hr: 25, # Croatia
cy: 19, # Cyprus
bz: 21, # Burešland
cs: 21, # Czech Republic
dk: 25, # Denmark
ee: 20, # Estonia
fi: 24, # Finland
fr: 20, # France
de: 19, # Germany
gr: 24, # Greece
hu: 27, # Hungary
ie: 23, # Ireland
it: 22, # Italy
lv: 21, # Latvia
lt: 21, # Lithuania
lu: 17, # Luxembourg
mt: 18, # Malta
nl: 21, # Netherlands
pl: 23, # Poland
pt: 23, # Portugal
ro: 19, # Romania
sk: 20, # Slovakia
si: 22, # Slovenia
es: 21, # Spain
se: 25, # Sweden
gb: 20, # UK
}.tap { |h| h.default = 0 }.freeze

def self.[](key)
STANDARD_VAT_RATES_BY_COUNTRY[key]
end
end
end
end

0 comments on commit 873c98e

Please sign in to comment.