=== Kazuki Qualified Invoice Number for WooCommerce ===
Contributors: kazukiyamashita80
Tags: woocommerce, invoice, japan, checkout, qualified-invoice
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 1.0.11
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Collect Japan qualified invoice registration numbers (T + 13 digits) at WooCommerce checkout.

== Description ==

=== 日本語の説明 ===

**このプラグインが向いている方:** WooCommerce で **法人・事業者向け** に販売していて、購入者から **インボイス登録番号（適格請求書発行事業者登録番号）** を受け取りたいショップオーナー。

**できること:**

チェックアウト画面に「インボイス登録番号」の入力欄を追加します。購入者が「T＋13桁」の番号を入力すると、注文に保存されます。管理画面の注文詳細でいつでも確認でき、注文メールにも表示できます。

**主な機能:**

* 「T＋13桁」の書式チェックをチェックアウト時に実施
* クラシックチェックアウト・WooCommerce Checkout Block の両方に対応
* 注文確認メールへの表示（任意設定）
* 番号の任意・必須を設定で切り替え

**注意:** このプラグインは番号の **書式チェックのみ** 行います。国税庁の公開システムで実際に登録されているかを確認するには、[Kazuki Invoice Registration Verify for WooCommerce](https://wordpress.org/plugins/kazuki-invoice-registration-verify-for-woocommerce/) を併用してください。

**関連プラグイン:**

* [Kazuki Invoice Registration Verify for WooCommerce](https://wordpress.org/plugins/kazuki-invoice-registration-verify-for-woocommerce/) — 国税庁APIで登録番号を照合
* [Kazuki Accounting Export for WooCommerce](https://wordpress.org/plugins/kazuki-accounting-export-for-woocommerce/) — 注文を弥生・freee・マネーフォワード形式でエクスポート

---

**Who this is for:** WooCommerce shops in Japan that sell to **registered businesses** and must record the buyer's **適格請求書発行事業者登録番号** on orders and invoices.

**What it does in plain terms:**

When a company buys from your site, they often need their registration number on the transaction record. This plugin adds a field at checkout so customers can enter it. The number is saved on the order, shown in the admin order screen, and can appear in order emails.

**Typical workflow:**

1. Install and enable the plugin.
2. WooCommerce → Settings → **インボイス登録番号** — choose optional or required.
3. Customer enters their number at checkout (classic or Checkout Block).
4. You see the number on the order when preparing invoices or bookkeeping.

**Features:**

* Checks that the value looks valid (`T` + 13 digits) before the order is placed
* Works with WooCommerce Checkout Block
* Optional: show the number in customer order emails

**This plugin does not** check whether the number is really registered with the tax office. For automatic verification at checkout, use [Kazuki Invoice Registration Verify for WooCommerce](https://wordpress.org/plugins/kazuki-invoice-registration-verify-for-woocommerce/). You can also check numbers manually on the [NTA public site](https://www.invoice-kohyo.nta.go.jp/).

**Works well with:**

* [Kazuki Invoice Registration Verify for WooCommerce](https://wordpress.org/plugins/kazuki-invoice-registration-verify-for-woocommerce/) — checks the number against the NTA public register at checkout
* [Kazuki Accounting Export for WooCommerce](https://wordpress.org/plugins/kazuki-accounting-export-for-woocommerce/) — copies the registration number into Yayoi journal export

**Enjoying this plugin?** If it helps your shop, [a review on WordPress.org](https://wordpress.org/support/plugin/kazuki-qualified-invoice-number-for-woocommerce/reviews/#new-post) would mean a lot to us — thank you.

== Installation ==

1. Upload the plugin folder to `/wp-content/plugins/` or install via WordPress plugins screen.
2. Activate through the 'Plugins' menu.
3. Ensure WooCommerce is active.
4. Configure under WooCommerce → Settings → インボイス登録番号.

== Frequently Asked Questions ==

= What is a qualified invoice registration number? =

In Japan, registered invoice issuers have a **T + 13 digit** ID (適格請求書発行事業者登録番号). B2B buyers often need to give it to suppliers for proper tax invoicing.

= Does this verify registration with the tax office? =

No. It checks the **format** only. Use [Kazuki Invoice Registration Verify for WooCommerce](https://wordpress.org/plugins/kazuki-invoice-registration-verify-for-woocommerce/) or the [NTA public site](https://www.invoice-kohyo.nta.go.jp/) for official status.

== Changelog ==

= 1.0.11 =
* readme に日本語説明セクションを追加（対象者・機能・関連プラグイン）。

= 1.0.10 =
* readme: restore cross-link to Kazuki Invoice Registration Verify for WooCommerce (now published on WordPress.org).

= 1.0.9 =
* readme: remove link to verification plugin until it is published on WordPress.org (avoid broken links).

= 1.0.8 =
* Settings UI and checkout messages: plain-language labels for non-experts.
* Review request in readme and settings.

= 1.0.7 =
* readme: clearer description for shop owners (who it is for, workflow).

= 1.0.6 =
* readme: cross-links to accounting export and NTA verification plugins.

= 1.0.5 =
* readme tags fix (no spaces). Final naming for WordPress.org review.

= 1.0.4 =
* Rename plugin for WordPress.org guidelines (Kazuki Qualified Invoice Number for WooCommerce).
* Add Requires Plugins header for WooCommerce.
* Remove load_plugin_textdomain (WordPress.org language packs).
* Author: Kazuki Yamashita.

= 1.0.3 =
* WordPress.org plugin check: Tested up to 7.0, text domain, languages folder.

= 1.0.2 =
* Fix checkout completion error on block checkout (email/admin display).
* Block checkout support via WooCommerce additional checkout fields API.

= 1.0.1 =
* WooCommerce Checkout Block support.

= 1.0.0 =
* Initial release.
