XML ZUGFeRD

Overview


The module provides support for  ZUGFeRD - one of the two established e-invoice formats in Germany. The plugin enables users to generate XML invoices automatically or upon request, store and  export XML invoices for electronic invoicing and embed XML into PDF invoices HostBill generates

Please ensure to verify exported files with your accountant. Module requires PHP 7.4 or higher

Activating the module


  1. If the plugin is included in your HostBill edition you can download it from your client portal.
  2. If the plugin is not included in your HostBill edition you can purchase it from our marketplace and then download it from the client area.
  3. Once you download the plugin extract it in the main HostBill directory.
  4. Go to Settings → Modules → Plugins → Inactive, find and activate xml_zugferd plugin.
  5. Once the plugin is activated you will be directed to Settings→ Modules→ Plugins to configure the module.

Module configuration


Fill in the configuration fields:

  1. Choose module display name
  2. Select if you want the plugin to be accessible for all staff members or only selected staff members
  3. Format - select from the dropdown list of the supported CII profiles:
    1. EN16931 Minimum
    2. EN16931 Basic
    3. EN16931 Basic WL
    4. EN16931 Comfort
    5. EN16931 Extended
    6. EN16931 XRechnung 1.x
    7. EN16931 XRechnung 2.x
    8. EN16931 XRechnung 3.x
  4. Seller: Company Name - your company name, if none is set, the module will use the one from general settings
  5. Seller: Global ID - the seller's identifier identification scheme is an identifier uniquely assigned to a seller by global registration organization.
  6. Seller: Global ID Type - if the identifier is used for the identification scheme, it must be selected from the entries in the list published by the ISO / IEC 6523 Maintenance Agency
  7. Seller: Email Communication - email for communication
  8. Seller: 1st Tax Type - type of tax number of the seller (FC = Tax number, VA = Sales tax identification number)
  9. Seller: 1st Tax ID - tax number of the seller or sales tax identification number of the seller. In case of VA: add a prefix in accordance with ISO code ISO 3166-1 alpha-2 by which the country of issue may be identified)
  10. Seller: 2nd Tax Type - type of additional tax number of the seller (FC = Tax number, VA = Sales tax identification number)
  11. Seller: 2nd Tax ID - additional tax number of the seller or sales tax identification number of the seller
  12. Seller: Address Line 1 - your company address line 1
  13. Seller: Address Line 2 - your company address line 2
  14. Seller: Postal Code - your company postal code
  15. Seller: City - your company's city
  16. Seller: Country - your country code in ISO_3166-1 format, ie: DE
  17. Seller: State - your company registration state/province
  18. Seller: Bank/SEPA IBAN - a unique identifier for the financial account held with a payment service provider to which the payment should be made, eg use an IBAN (in the case of a SEPA payment) for a national ProprietaryID
  19. Seller: Bank/SEPA BIC - a unique identifier for the financial account held with a payment service provider to which the payment should be made
  20. Seller: SEPA: Creditor ID - in case of SEPA-related payment: Identifier of the creditor
  21. Seller: Contact Person Name  - contact point for a legal entity, such as personal name of the contact person
  22. Seller: Contact Department Name - contact point for the legal entity, such as a name of the department of office
  23. Seller: Contact Phone
  24. Seller: Contact Fax no
  25. Seller: Contact Email 
  26. Buyer: IBAN Registration Field - optional, registration field variable name used for storing customer IBAN, used when SEPA-related gateway is used on invoice
  27. Buyer: VAT Registration Field - registration field variable name used for storing customer VAT number. ie: 'vateu'
  28. Buyer: Identifier field - optional: registration field variable name used for storing custom customer identifier
  29. Unit Quantity Code - defaults to C62 if not set. The unit of measure is applicable to the amount billed. The unit of measurement must be taken from the lists from UN / ECE Recommendation No 20.
  30. Payment Terms - required for unpaid invoices. Smarty is available here, you can access {$invoice} details as in email/document template
  31. Payment term due date - when enabled due date will be passed for unpaid invoices into payment terms
  32. Delivery date - specify delivery date to be exported in xml file. If none is selected, delivery date will, not be set. According to the German UStG §14, the indication of the time of delivery or other service is mandatory. 
  33. Auto-validate - auto-validate each newly generated XML invoice. Use for testing stage only as it will significantly slow down xml generation. Any errors returned during validation will be logged to main HostBill log file. 
  34. Attach Zugferd to PDF - when enabled Zugferd XML will be auto-attached to PDF invoices generated by HostBill.