=== Ledgerline – Peppol e-invoices for WooCommerce ===
Contributors: afkzonagroup
Tags: e-invoice, peppol, ubl, invoice, woocommerce
Requires at least: 6.7
Tested up to: 7.1
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Peppol BIS 3.0 e-invoices and credit notes from WooCommerce orders: checked before they are issued, numbered without gaps, emailed and downloadable.

== Description ==

Business customers and public bodies across Europe increasingly ask for e-invoices instead of PDFs. Belgium has required them between businesses since 1 January 2026, and more countries follow. Ledgerline turns your WooCommerce orders into e-invoices in the European standard format, Peppol BIS Billing 3.0 (UBL 2.1), ready to send through your Peppol access point or upload to your customer's system.

= Invoices that pass the official checks =

* Every invoice follows Peppol BIS Billing 3.0.21 and the European standard EN 16931
* Before an invoice is issued, Ledgerline checks it for everything the official rules require. If something is missing, such as the customer's Peppol ID or an exemption reason, it tells you what and where, and the invoice is not issued
* VAT exactly as WooCommerce charged it: standard and reduced rates on one invoice, shipping and fees, coupons, discount fees spread over the rates the way WooCommerce does it. The amount to pay always equals the order total to the cent
* Reverse charge for EU business customers (goods and services), exports outside the EU, VAT-exempt sales with your reason, and sellers who are not VAT registered
* National rules for sellers in the Netherlands, Denmark and Sweden

= Issued once, never changed =

* Invoices and credit notes get their own number series without gaps: a failed attempt never uses up a number
* An issued invoice is stored exactly as it was issued. Corrections go through a refund and its credit note, which refers to the original invoice

= Automatic or by hand =

* Issue invoices when an order is completed or when it is paid, only for business customers or for everyone, or only by hand from the order screen
* A refund issues its credit note automatically, or with one click on the order screen
* The invoice is attached to the order email and the credit note to the refund email

= Peppol IDs =

* Worked out from the EU VAT number where the scheme is unambiguous, for example Belgian enterprise numbers (0208) and the VAT-number schemes of most EU countries
* Entered on the order screen for anyone else, and remembered for the customer's next orders
* Checked the way the Peppol network checks them: Lithuanian company codes, Belgian enterprise numbers, Norwegian, Swedish, Danish and Dutch numbers, GLNs and Italian VAT numbers

= For you and your customers =

* Download the XML from the order screen
* Customers download their invoices and credit notes from My account › Orders

== Installation ==

1. Install and activate WooCommerce and Ledgerline.
2. Go to WooCommerce › Settings › E-invoices. Enter your legal name, your company registration number and your VAT number. Your Peppol ID is worked out from them, or you enter it yourself.
3. Check your shop address under WooCommerce › Settings › General; it is printed on every invoice.
4. Under E-invoices › Invoices, choose when invoices are issued and your number prefixes.

== Frequently Asked Questions ==

= Does Ledgerline send the invoice over the Peppol network? =

Ledgerline creates the e-invoice. To deliver it over Peppol you need an access point, a service that is registered on the network; most of them accept an uploaded or emailed UBL file. The file is also attached to the order email, so customers who read e-invoices with their own software receive it directly.

= What is a Peppol ID? =

The address of a business on the Peppol network, made of a scheme and a number, for example 0208:0403170701 for a Belgian company. Your customer can tell you theirs; for most EU businesses Ledgerline works it out from their VAT number.

= Can I change an invoice after it is issued? =

No, and that is deliberate: an issued invoice is an accounting record. Refund the order (or part of it) and Ledgerline issues a credit note that refers to the original invoice.

= What happens to invoices when I delete the plugin? =

They stay. Issued invoices and credit notes are part of your orders, and the number series is kept so that a reinstall never reuses a number. Only the settings are removed, and only when you choose that under E-invoices › Invoices.

= Which VAT rates can one order line have? =

One. WooCommerce can add several taxes to one line (compound taxes); an e-invoice has exactly one VAT rate per line, so such orders are refused with a clear message.

== Changelog ==

= 1.0.0 =
* First release.
