Jptax は日本の消費税額を計算します。
Add this line to your application's Gemfile:
gem 'jptax'And then execute:
$ bundle installOr install it yourself as:
$ gem install jptax税抜金額を元に税込金額を計算します。 端数は切り捨てられます。
Jptax.amount_with_tax(100)
# => 110Jptax.amount_with_tax(0, 200)
# => 216Jptax.amount_with_tax(100, 200)
# => 316計算間違いによる一切の責任は負えませんので、よくご確認の上ご利用ください。
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Jptax project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.