Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

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