The liquor tax of Japan on beer and the drinks like it, on sake and on wine, as a rule of rulec for a module of ritsu to use. The rule is here in English and in Japanese, and the two give the same answers.
The rule transcribes the law, to be read against it. It is not tax advice. It gives the rate, not what is owed: the tax is worked out on what is shipped in a month, and the reduction for small makers (Article 87 of the Act on Special Measures Concerning Taxation) is not here. Distilled and mixed liquors are not here either: their rates go by the degrees of alcohol.
Use
This module is shared by git: a version is a tag of this repository, and no registry is involved.
$ ritsu mod add japan_liquor_tax https://github.com/i2y/ritsu-japan-liquor-tax@1.1.0
$ ritsu mod fetch
The lock pins the commit the tag leads to, and the digests of the files. There is no signature to check. Then read it from your own code of kaname or dandori:
use rule japan_liquor_tax from "@japan_liquor_tax/japan_liquor_tax.rule"
Versions
Each version holds the rates of one step of the reform of 2017, so the difference between two versions is what a step moved. In a project that requires the module:
$ ritsu mod versions https://github.com/i2y/ritsu-japan-liquor-tax
$ ritsu mod diff github.com/i2y/ritsu-japan-liquor-tax@1.0.0 github.com/i2y/ritsu-japan-liquor-tax@1.1.0
A version that follows a change in the law raises the minor version. A version that renames a file or removes one, or changes the inputs or outputs of the rule, raises the major version.
To put out a new version, change the files and the version line of ritsu.mod, commit, and push the tag:
$ ritsu check .
$ git tag -a v1.2.0 -m "1.2.0"
$ git push origin main v1.2.0
Sources
rulec source outdated <file> asks e-Gov whether a later amendment touched an article the rule pins. THIRD_PARTY_NOTICES.md lists the copies under sources/law/.
The rule and the requirements are under the MIT License or the Apache License, version 2.0, at your option, as ritsu is.