e8dev13 downloadsWrite Japanese invoices (適格請求書) in Markdown. Calculates consumption tax by rate, withholding tax and payment due dates, and renders a printable invoice.
An Obsidian plugin for writing Japanese invoices (適格請求書) in Markdown. It calculates consumption tax per rate, withholding tax (源泉徴収) and payment due dates, and renders a printable invoice you can export to PDF.

invoice code block that renders the finished documentT + 13 digits, plus the corporate-number check digit for corporations2026-09-001), due date from payment terms such as 月末締め翌月末払い¥1,234,567, 123万4567円, or 大字 (金壱拾弐万参千四百五拾六円也) for receipts---
type: invoice
number: "2026-09-001"
client: "株式会社サンプル"
issued: 2026-09-30
due: 2026-10-31
withholding: true
status: unpaid
---
| 品目 | 数量 | 単価 | 税率 |
|---|---:|---:|---|
| 記事執筆(3本) | 3 | 30,000 | 10% |
| 取材交通費 | 1 | 5,000 | 10% |
```invoice
### Frontmatter keys
| Key (aliases) | Meaning |
| --- | --- |
| `number` (`請求番号`) | Invoice number |
| `client` (`宛先`, `取引先`) | Client name; the honorific (御中) comes from settings or `client_suffix` |
| `issued` (`発行日`), `due` (`支払期限`) | Dates (`YYYY-MM-DD`) |
| `subject` (`件名`) | Subject line |
| `withholding` (`源泉徴収`) | `true` / `false` |
| `withholding_base` | `excl` (before tax, default) or `incl` |
| `deduction` (`振込手数料`) | Amount deducted from the payable |
| `status` | `unpaid` / `paid` — shown as a badge on screen only |
| `note` (`備考`) | Remarks printed at the bottom |
| `title` | Document title (default 請求書; use 見積書 etc.) |
The same keys can be written inside the `invoice` code block as `key: value` lines, and a table inside the block takes precedence over the note's table, so a self-contained block also works.
### Table columns
Headers are matched by name: 品目/内容/item, 数量/qty, 単価/unit price, 金額/amount, 税率/rate. Rate cells accept `10%`, `8%`, `軽減`, `非課税`, or blank (default rate from settings). Negative amounts work as discounts.
## Disclaimer
This plugin performs arithmetic according to publicly documented rules; it is not tax advice. Rates and thresholds are settings so they can be adjusted when the law changes. Verify invoices with your accountant or the National Tax Agency guidance where needed.
## Development
```bash
npm install
npm run dev
npm test
npm run lint
MIT
Markdown で請求書(適格請求書)を書き、消費税・源泉徴収・支払期限を自動計算して、そのまま PDF に出力できる Obsidian プラグインです。
invoice コードブロックで請求書を描画¥1,234,567/123万4567円/大字(金壱拾弐万参千四百五拾六円也)に変換本プラグインは公開されているルールに基づく計算を行うものであり、税務上の助言ではありません。税率やしきい値は法改正に備えて設定で変更できます。必要に応じて税理士や国税庁の案内でご確認ください。