=== Falkemit E-Invoice for XRechnung ===
Contributors: falkemitsolutions
Tags: woocommerce, xrechnung, e-invoice, zugferd, invoice
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.0
Stable tag: 2.0.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Automatically creates compliant XRechnung (EN 16931) and ZUGFeRD PDFs for your WooCommerce orders — 100% local, no cloud, no subscription.

== Description ==

Falkemit E-Invoice for XRechnung automatically generates electronic invoices in the German XRechnung standard (XRechnung 3.0 / EN 16931) for every WooCommerce order — fully locally on your own server.

This plugin is an independent, third-party integration with the XRechnung standard and is not affiliated with, endorsed by, or connected to KoSIT or any official XRechnung body.

= Why local instead of cloud? =

Unlike many other e-invoicing plugins, this plugin sends **no customer data to external servers**. The entire invoice generation happens directly inside your WordPress installation:

* 100% GDPR-friendly — no data transfer to third parties
* No subscription — no recurring API costs
* No internet connection required for invoice generation
* Full control over your sensitive business data

= Features =

* Automatic XRechnung XML generation when an order is completed
* ZUGFeRD PDF with embedded XRechnung (hybrid format)
* Sends the invoice to the customer by email
* Download area in the customer account ("My Orders")
* VAT ID and Leitweg-ID fields at checkout (for B2B/B2G)
* Admin area to manually create, download and regenerate invoices
* Supports coupons, shipping costs and multiple tax rates
* Validation according to BR-CO-9 (VAT ID or tax number required)

= Who is this plugin for? =

* Online shops selling to public authorities (B2G requirement since 2020)
* B2B merchants preparing for the upcoming e-invoicing obligation 2025-2027
* Shops that value data protection and GDPR compliance

== Installation ==

1. Upload the plugin ZIP under "Plugins" -> "Add New" -> "Upload Plugin"
2. Activate the plugin
3. Under "WooCommerce" -> "XRechnung" enter your company details
4. Enter your VAT ID or tax number (required field)
5. Done — from now on a compliant XRechnung is created automatically for every completed order

== Frequently Asked Questions ==

= Is any data sent to external servers? =

No. The entire invoice generation happens locally on your WordPress server. There is no external API and no cloud connection.

= Is an internet connection required? =

No, not for invoice generation itself. Your normal WordPress mail server is only used to send the invoice by email.

= Which formats are supported? =

XRechnung 3.0 (UBL-based XML according to EN 16931) and ZUGFeRD 2.3 (PDF with embedded XML).

= Do I need an API key? =

No. Unlike many other e-invoicing plugins, you do not need an external API key or a subscription.

= Is the plugin suitable for invoices to public authorities (B2G)? =

Yes. The plugin supports the Leitweg-ID field, which is mandatory for invoices to German federal authorities since 27 November 2020.

== Screenshots ==

1. Settings page with company details
2. XRechnung box in the order view
3. PDF invoice with embedded XRechnung (ZUGFeRD)
4. Download area in the customer account

== Changelog ==

= 2.0.0 =
* ZUGFeRD PDF generation with embedded XRechnung XML
* Customer-facing download area in the account
* VAT ID and Leitweg-ID checkout fields
* Validation according to BR-CO-9
* Improved error handling

= 1.0.0 =
* Initial release
* Automatic XRechnung XML generation
* Email attachment
* Admin meta box

== Upgrade Notice ==

= 2.0.0 =
New features: ZUGFeRD PDF and customer download area. Please check your settings after updating.
