GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - wsystemdev/jtl-e-invoice: XRechnung 3.0 / EN 16931 / Peppol e-invoices from JTL-Shop 5 orders (W System)

BranchesTags
Open more actions menu

Latest commit

 

History

3 Commits
3 Commits

Folders and files

NameName
Last commit message
Last commit date
store-listing
store-listing
 
 
tests
tests
 
 
wsystem_einvoice
wsystem_einvoice
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
build-zip.sh
build-zip.sh
 
 

Repository files navigation

W System E-Invoice for JTL-Shop 5

Create, validate and send XRechnung 3.0 / EN 16931 / Peppol BIS Billing 3.0 e-invoices from JTL-Shop orders, and check received supplier invoices, with the W System API.

Deutsch: siehe unten.

What it adds on top of JTL-Wawi's own XRechnung export

JTL-Wawi (1.9.x) already exports XRechnung 3.0.x and ZUGFeRD from its own invoice templates. This plugin does not replace that. It covers what the native export does not:

  • Validation on every invoice against the XML Schema, CEN EN 16931 Schematron and KoSIT XRechnung rules, with a plain-language fix per failed rule.
  • Peppol sending (sandbox to test, live when your account is set up), with VAT ID (VIES), Peppol reachability and sanctions checks before each send.
  • Counterparty checks on received invoices (POST /einvoice/check): paste or upload a supplier XML in the admin and get a verdict (rules, VIES name match, sanctions, totals, IBAN, duplicates, bank-detail changes).
  • Works from JTL-Shop orders (Hook 181, status pushed by JTL-Wawi), no template editing.

New in 0.2.1

  • Gross prices (customer groups with prices incl. VAT): the e-invoice nets per VAT rate now match JTL's own net (sum of the rounded position nets; VAT = sum of the rounded position gross minus that net), so the e-invoice total equals the order total (fGesamtsumme) instead of being off by a cent. Where no net amount can reach JTL's VAT (e.g. one item at 9.99 incl. 19 %), JTL's VAT per rate is sent as vat_amounts; the W System API uses it once its vat_amounts support is live and ignores it until then.
  • If one rate's gross cannot be reached by any net (e.g. 3 × 9.99 incl. 19 %), another rate's net moves by 1–2 cents so the total also matches on API versions without vat_amounts support.
  • Net-priced (B2B) orders are unchanged.

Requirements

JTL-Shop 5.2.0+, PHP 8.1+, PHP curl extension. No account needed (20 invoices/day without key); free for 50 invoices a month with a free API key at https://wsystem.dev/account, then from €12 (https://wsystem.dev/online-shops).

Install

  1. Download wsystem_einvoice.zip from the latest release.
  2. JTL-Shop admin: Plugins > Plugin-Manager > Verfügbar > upload the ZIP, then activate it.
  3. Plugins > Installed > W System E-Invoice > Settings: company data (XRechnung needs contact name, phone, email), format, trigger.
  4. Ship a test order, or use the "E-Invoices" tab to create one by order number.

Data sent

On creation the order's invoice data goes to https://api.wsystem.dev/einvoice/create (seller details, customer name/company/address/email/VAT ID, lines, amounts, payment method). Peppol sending uses /einvoice/send; the received-invoice check uses /einvoice/check. Nothing is sent on activation. Terms, privacy.

Status

Version 0.2.1. Fixes only: gross-price rounding and vat_amounts (see above). The order mapping and API logic are unit tested (php tests/run.php) and the request shape is the same as the W System WooCommerce plugin. It has been written against the JTL-Shop 5 plugin API and the Bestellung object, but not yet run inside a live JTL-Shop: please report problems. Not in this version: attaching the XML to JTL-Shop emails, ZUGFeRD PDF output, credit notes. Those features live on the jtl-zugferd-credit-notes branch (also bet3-gross-rounding) for a later release, after a run on a real local JTL-Shop.

Deutsch

Erzeugt, prüft und versendet XRechnung 3.0 / EN 16931 / Peppol-BIS-E-Rechnungen aus JTL-Shop-Bestellungen und prüft empfangene Lieferantenrechnungen. JTL-Wawi exportiert XRechnung und ZUGFeRD bereits selbst; das Plugin ergänzt Prüfung bei jeder Rechnung, Peppol-Versand und Gegenpartei-Prüfung. Installation: ZIP im Plugin-Manager hochladen, aktivieren, Firmendaten eintragen.

MIT license.

About

XRechnung 3.0 / EN 16931 / Peppol e-invoices from JTL-Shop 5 orders (W System)

Resources

Readme
MIT license
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.