Your AI agent rounds Japanese consumption tax per line. Japan says round once per rate.
说明与用途
AI 代理在为日本客户生成发票时,常按行进行消费税四舍五入,违反了每张发票按税率一次四舍五入的规定。JP Invoice Check 可验证发票并标记四舍五入错误。
问题
AI agents drafting invoices for Japanese customers often round consumption tax per line, violating Japan’s rule that tax must be rounded once per invoice per rate.
结果
Invoices pass the checker with no rounding errors, aligning with Japanese tax regulations and preventing accounting mismatches.
工作流
- 1. Install JP Invoice Check via pip. 2. Configure the company policy JSON with the rounding method and tax inclusion/exclusion. 3. Run the checker against the generated invoice. 4. Review the output for any E_TAX_LINE_ROUNDING errors. 5. Correct the invoice if needed and re‑run the checker.
- 6. (Optional) For received invoices, note the supplier’s rounding method and the difference in yen.
证据
Since October 2023, a "qualified invoice" in Japan must round the tax once per invoice for each tax rate, not line by line
Language models tend to compute the tax on every line and add it up.
JP Invoice Check is a small MCP server, CLI and Agent Skill (Python standard library only, no network, MIT). It checks the six items a qualified invoice must carry, the 8% reduced-rate marks, the totals per rate, and the rounding rule.
The company rule (rounding method, tax included or excluded) is loaded once, when a person starts the server. No tool call can change it.
pip install "git+https://github.com/ayatrader/jp-invoice-check"
- 记录日期: 2026-11-02T15:14:02.286Z