feat: Remove 'Steuerhinweis' element from invoice template

Remove the 'Steuerhinweis' (invoice-tax-note) element with the text
'* Alle Preise verstehen sich zzgl. gesetzlicher MwSt.' from:
- INVOICE_PALETTE_ITEMS list
- INVOICE_LOCKED_TEXT_PALETTE_IDS set
- Starter layout and adjust positions of following elements
This commit is contained in:
2026-03-18 09:24:14 +01:00
parent 5fb6f3303b
commit 8adc817428

View File

@@ -42,7 +42,7 @@ const INVOICE_LOCKED_TEXT_PALETTE_IDS = new Set([
"invoice-subtotal",
"invoice-tax",
"invoice-total",
"invoice-tax-note",
"payment-terms",
"bank-details",
"issuer-name",
@@ -326,17 +326,6 @@ const INVOICE_PALETTE_ITEMS: PaletteItem[] = [
textAlign: "right",
defaultContent: () => "Gesamt: 113,05 €",
},
{
id: "invoice-tax-note",
category: "invoice-totals",
label: "Steuerhinweis",
description: "Hinweis zur Steuerbefreiung oder -pflicht",
width: 400,
fontSize: 12,
fontWeight: 400,
textAlign: "left",
defaultContent: () => "* Alle Preise verstehen sich zzgl. gesetzlicher MwSt.",
},
{
id: "payment-terms",
category: "invoice-footer",
@@ -939,10 +928,9 @@ function createInvoiceStarterLayout(user: UserOption | null, paletteItems: Palet
createElementFromPalette(requirePaletteItem(paletteItems, "invoice-subtotal"), user, { x: 500, y: 460 }),
createElementFromPalette(requirePaletteItem(paletteItems, "invoice-tax"), user, { x: 500, y: 486 }),
createElementFromPalette(requirePaletteItem(paletteItems, "invoice-total"), user, { x: 500, y: 520 }),
createElementFromPalette(requirePaletteItem(paletteItems, "invoice-tax-note"), user, { x: 56, y: 560 }),
horizontalLine(56, 600, 646),
createElementFromPalette(requirePaletteItem(paletteItems, "payment-terms"), user, { x: 56, y: 620 }),
createElementFromPalette(requirePaletteItem(paletteItems, "bank-details"), user, { x: 56, y: 660 }),
horizontalLine(56, 560, 646),
createElementFromPalette(requirePaletteItem(paletteItems, "payment-terms"), user, { x: 56, y: 580 }),
createElementFromPalette(requirePaletteItem(paletteItems, "bank-details"), user, { x: 56, y: 620 }),
];
}