8000 GitHub - taka1985/jptax: Easy caluculating Japanese consumption tax for Rails. · GitHub
[go: up one dir, main page]

Skip to content
taka1985Public
forked from tomoeine/jptax

About

Easy caluculating Japanese consumption tax for Rails.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

Jptax

Jptax は日本の消費税額を計算します。

Installation

Add this line to your application's Gemfile:

gem 'jptax'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install jptax

Usage

税込金額計算

税抜金額を元に税込金額を計算します。 端数は切り捨てられます。

通常税率の税込金額を計算

Jptax.amount_with_tax(100)
# => 110

軽減税率の税込金額を計算

Jptax.amount_with_tax(0, 200)
# => 216

通常税率と軽減税率の税込金額を計算

Jptax.amount_with_tax(100, 200)
# => 316

Note

計算間違いによる一切の責任は負えませんので、よくご確認の上ご利用ください。

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the Jptax project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.

About

Easy caluculating Japanese consumption tax for Rails.

Resources

Code of conduct

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

0