Herzlich willkommen

Validation

Two CLI commands are available for checking generated invoices.

XSD Schema Check – validate-xml

Checks one or all XML files against the XSD schema.

# Bestimmte Datei prüfen
bin/magento geissweb:einvoice:validate-xml var/export/e-invoices/invoice_000000123.xml

# Alle Dateien im konfigurierten Speicherpfad prüfen
bin/magento geissweb:einvoice:validate-xml
Argument/Option Meaning
file (argument, optional) Path to the XML file. Without a value, all files in the storage path are checked.
--validation-type, -t Validation type, default xsd.

The command outputs document information and the check result.

The XSD check only ensures structural validity (schema). The complete EN 16931 and BR-DE business rules are not checked by it.

Amount Verification – verify-amounts

Performs a round-trip verification: regenerates the invoice XML in memory, compares the amounts with the existing XML file and checks the EN 16931 rules BR-CO-13 and BR-CO-15.

# Einzelne Rechnung (über die Increment-ID / Rechnungsnummer)
bin/magento geissweb:einvoice:verify-amounts --invoice-id=000000123

# Alle Rechnungen im Speicherpfad
bin/magento geissweb:einvoice:verify-amounts --all

# Ausführliche Ausgabe (zeigt auch übereinstimmende Rechnungen)
bin/magento geissweb:einvoice:verify-amounts --all -v
Option Short Meaning
--invoice-id -i Increment ID (invoice number), e.g. 000000123.
--all -a Check all invoice XML files in the storage path.
-v Verbose output.

Deviations are output as a table (field, XML value, expected value, difference). A tolerance of 0.01 (1 cent) applies for floating-point comparisons.