Skip to content

Commit

Permalink
Přidání metody na výpočet DPH
Browse files Browse the repository at this point in the history
  • Loading branch information
bkutil committed Jun 9, 2019
1 parent 873c98e commit 9f4114b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/libtooz/vat.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
require "libtooz/vat/version"
require "libtooz/vat/country_rates"

module Libtooz
module Vat
class Error < StandardError; end
# Your code goes here...

def self.compute(country:, amount:)
((CountryRates[country] * amount) / 100).round
end
end
end

0 comments on commit 9f4114b

Please sign in to comment.