Skip to content

Document (v2)

Document (v2) ​

This page documents the new Document System (v2)

The reworked document generation is an experimental feature. Activate it with the DOCUMENT_GENERATION_REWORK feature flag. Its API can change until it becomes the default with Shopware 6.8.

What it is ​

The Document System (v2) generates order related business documents: invoices, delivery notes, credit notes, and cancellation invoices.

Each document can be generated in one or more file formats: HTML, PDF, ZUGFeRD XML, or ZUGFeRD-embedded PDF. Shopware stores the generated files per order.

Why a rewrite ​

The legacy document system coupled document type and file format, so every combination of type and format needed its own renderer. Adding a format meant touching every type, and adding a type meant touching every format.

The Document System (v2) splits generation into three independent axes instead:

Availability ​

The Document System (v2) rolls out over three releases: it starts as an opt-in feature, becomes the default, and finally replaces the legacy system.

The migration strategy ADR covers how the legacy system and v2 coexist during this window.

ADRs ​

Was this page helpful?
UnsatisfiedSatisfied
Be the first to vote!
0.0 / 5  (0 votes)