モジュール / ghcr.io / i2y

ritsu-late-payment

What a supplier claims in the United Kingdom for an invoice paid late: a rule, a calendar and the kaname code that joins them

  • i2y/ritsu の署名を確かめました
  • ダイジェストが一致
  • ritsu check を通ります
  • データ 2 件を SHA-256 で固定
  • 公開 2026-11-05
  • ritsu 0.41.0 以降が要ります
  • ソース

入っているもの

名前説明試す、コードを読む
payment_termsThe day a commercial invoice falls due when no day was agreed: the last day of the 30 days beginning with the day the buyer had the invoice. As this module reads the Late Payment of Commercial Debts (Interest) Act 1998, section 4(2A) and (2H); it says nothing of how the law is read
支払期限支払いの日を決めていない事業者間の請求書の期日。買い手が請求書を受けた日から数えて 30 日の、最後の日。Late Payment of Commercial Debts (Interest) Act 1998 の第 4 条 (2A) と (2H) を、このモジュールとして読んだもの。法令の読み方を示すものではない。payment_terms.cal の日本語の版
late_payment_chargesWhat a supplier may claim on a commercial debt paid late: the fixed sum for the cost of recovering it, and statutory interest at 8% over the reference rate, worked out a day at a time. As this example reads the Late Payment of Commercial Debts (Interest) Act 1998, section 5A(2), and GOV.UK's guide to charging interest on a commercial debt; it says nothing of how the law is read
遅延の請求額事業者間の代金の支払いが遅れたとき、売り手が請求できるもの。取り立ての費用としての定額と、基準金利に 8% を足した率で一日ずつ数える法定の利息。Late Payment of Commercial Debts (Interest) Act 1998 の第 5A 条 (2) と、GOV.UK の事業者間の請求の利息の手引きを、この例として読んだもの。法令の読み方を示すものではない。late_payment_charges.rule の日本語の版
支払いの遅れ遅れて払われた請求書について、売り手が請求するもの。期日、何日遅れて払われたか、規則がそれに付ける定額と利息。late_payment.kn の日本語の版
late_paymentWhat a supplier claims for an invoice paid late: the day it fell due, how many days late it was paid, and the fixed sum and the interest the rule gives for them

英国の事業者間の請求書の支払いが遅れたとき、売り手が請求できるものを、ritsu のモジュールにしたものです。根拠は Late Payment of Commercial Debts (Interest) Act 1998 です。規則と暦と、それをつなぐ kaname のコードがあり、どれにも英語の版と日本語の版があって、二つの答えは同じです。

英語の版日本語の版答えること
dates/payment_terms.caldates/支払期限.cal支払いの日を決めていないときの期日。買い手が請求書を受けた日から数えて 30 日の、最後の日(第 4 条)
rules/late_payment_charges.rulerules/遅延の請求額.rule取り立ての費用としての定額(第 5A 条)と、基準金利に 8% を足した率で一日ずつ数える利息
late_payment.knlate_payment.ja.kn請求書一通の請求の全体。期日、遅れた日数、定額、利息。期日までに払われていれば何も無し

基準金利は入力です。当てはまるイングランド銀行の政策金利を渡してください。規則は 2026 年 10 月 18 日時点の法律と GOV.UK の案内を読んだもので、原文と見比べて読むためのものです。法律の助言ではありません。1 ペニー未満の端数をどちらに丸めるかは案内に書かれていないので、規則のコメントにそう書き、仮に四捨五入としました。

使い方

モジュールを依存に足し、署名を確かめる行を ritsu.mod に書いて、取ってきます。

$ ritsu mod add late_payment ghcr.io/i2y/ritsu-late-payment@1.0.0
signature "ghcr.io/i2y/ritsu-late-payment" by matching "^https://github[.]com/i2y/ritsu/" issuer "https://token.actions.githubusercontent.com"
$ ritsu mod fetch

あとは、自分の kaname や dandori のコードから読みます。

use rule charges from "@late_payment/rules/late_payment_charges.rule"
use dates terms from "@late_payment/dates/payment_terms.cal"

出典

rules/sources/ のコピーの一覧は THIRD_PARTY_NOTICES.md にあります。Contains public sector information licensed under the Open Government Licence v3.0.

規則と暦とコードは、ritsu と同じく、MIT License か Apache License 2.0 の好きなほうで使えます。

版

法令の変更に合わせる版は、マイナーの版を上げます。ファイルの名前を変える版、ファイルを消す版、規則の入力や出力を変える版は、メジャーの版を上げます。

日付の計算 2 本、規則 2 本、kaname のモジュール 2 個

ページは、この版のファイルからそれぞれの言語が描きました。

payment_terms

dates/payment_terms.cal日付の計算

The day a commercial invoice falls due when no day was agreed: the last day of the 30 days beginning with the day the buyer had the invoice. As this module reads the Late Payment of Commercial Debts (Interest) Act 1998, section 4(2A) and (2H); it says nothing of how the law is read

支払期限

dates/支払期限.cal日付の計算

支払いの日を決めていない事業者間の請求書の期日。買い手が請求書を受けた日から数えて 30 日の、最後の日。Late Payment of Commercial Debts (Interest) Act 1998 の第 4 条 (2A) と (2H) を、このモジュールとして読んだもの。法令の読み方を示すものではない。payment_terms.cal の日本語の版

late_payment_charges

rules/late_payment_charges.rule規則

What a supplier may claim on a commercial debt paid late: the fixed sum for the cost of recovering it, and statutory interest at 8% over the reference rate, worked out a day at a time. As this example reads the Late Payment of Commercial Debts (Interest) Act 1998, section 5A(2), and GOV.UK's guide to charging interest on a commercial debt; it says nothing of how the law is read

入力
debt (1〜100,000,000 GBPc); days_late (1〜1,500); reference_rate (0〜1,500 %)
出力
compensation (40〜100 GBP); interest (0〜94,521,000 GBPc)
出典
sources/late-payment-act-1998.md
出典
sources/late-commercial-payments.md

遅延の請求額

rules/遅延の請求額.rule規則

事業者間の代金の支払いが遅れたとき、売り手が請求できるもの。取り立ての費用としての定額と、基準金利に 8% を足した率で一日ずつ数える法定の利息。Late Payment of Commercial Debts (Interest) Act 1998 の第 5A 条 (2) と、GOV.UK の事業者間の請求の利息の手引きを、この例として読んだもの。法令の読み方を示すものではない。late_payment_charges.rule の日本語の版

入力
債権額 (1〜100,000,000 GBPc); 遅れた日数 (1〜1,500); 基準金利 (0〜1,500 %)
出力
定額の補償 (40〜100 GBP); 利息 (0〜94,521,000 GBPc)
出典
sources/late-payment-act-1998.md
出典
sources/late-commercial-payments.md

支払いの遅れ

late_payment.ja.knkaname のモジュール

遅れて払われた請求書について、売り手が請求するもの。期日、何日遅れて払われたか、規則がそれに付ける定額と利息。late_payment.kn の日本語の版

関数
遅れの請求

late_payment

late_payment.knkaname のモジュール

What a supplier claims for an invoice paid late: the day it fell due, how many days late it was paid, and the fixed sum and the interest the rule gives for them

関数
claim

試す

1.0.0 はこのサイトでいちばん古い版です

新しい版が公開されると、このタブに、どの入力の答えが変わるか、どの日が休みに変わるか、どの日を新しく知るかが出ます。

版 1 個

版公開ダイジェストファイル確かめたこと
1.0.0 最新2026-11-05sha256:e21b9852fe7b13ダイジェストと署名、ritsu check を通過

日付の計算

dates/payment_terms.cal791 バイト
dates/支払期限.cal1,002 バイト

規則

kaname のモジュール

late_payment.ja.kn1,873 バイト
late_payment.kn1,534 バイト

データとそのほかのファイル

モジュールについて

README.ja.md2,669 バイト
README.md2,371 バイト
THIRD_PARTY_NOTICES.md1,223 バイト
ritsu.mod518 バイト