GithubHelp home page GithubHelp logo

taka1985 / jptax Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tomoeine/jptax

0.0 0.0 0.0 11 KB

Easy caluculating Japanese consumption tax for Rails.

License: MIT License

Ruby 97.23% Shell 2.77%

jptax's Introduction

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.

jptax's People

Contributors

tomoeine avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.