Generate invoice PDFs attached to order confirmation, and send emails on order status changes

Invoice PDFs (§14 UStG line items, tenant-configurable VAT rate) are now
generated at checkout and attached to the confirmation email, plus
available on demand from the order-detail page. Payload-side, orders now
also email the customer on shipped/cancelled/return_requested/returned,
with Stornorechnung/Gutschrift correction PDFs attached for the latter two
so the original invoice's immutable number stays honest.
This commit is contained in:
Marco
2026-07-22 09:49:56 +00:00
parent fa02d95dff
commit 5232b14cdf
15 changed files with 1077 additions and 24 deletions
+1
View File
@@ -10,6 +10,7 @@
},
"dependencies": {
"@payloadcms/live-preview-react": "^3.85.2",
"@react-pdf/renderer": "^4.5.1",
"motion": "^12.42.2",
"next": "16.2.9",
"nodemailer": "^9.0.3",