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:
@@ -42,7 +42,7 @@ const INVOICE_LOCKED_TEXT_PALETTE_IDS = new Set([
|
|||||||
"invoice-subtotal",
|
"invoice-subtotal",
|
||||||
"invoice-tax",
|
"invoice-tax",
|
||||||
"invoice-total",
|
"invoice-total",
|
||||||
"invoice-tax-note",
|
|
||||||
"payment-terms",
|
"payment-terms",
|
||||||
"bank-details",
|
"bank-details",
|
||||||
"issuer-name",
|
"issuer-name",
|
||||||
@@ -326,17 +326,6 @@ const INVOICE_PALETTE_ITEMS: PaletteItem[] = [
|
|||||||
textAlign: "right",
|
textAlign: "right",
|
||||||
defaultContent: () => "Gesamt: 113,05 €",
|
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",
|
id: "payment-terms",
|
||||||
category: "invoice-footer",
|
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-subtotal"), user, { x: 500, y: 460 }),
|
||||||
createElementFromPalette(requirePaletteItem(paletteItems, "invoice-tax"), user, { x: 500, y: 486 }),
|
createElementFromPalette(requirePaletteItem(paletteItems, "invoice-tax"), user, { x: 500, y: 486 }),
|
||||||
createElementFromPalette(requirePaletteItem(paletteItems, "invoice-total"), user, { x: 500, y: 520 }),
|
createElementFromPalette(requirePaletteItem(paletteItems, "invoice-total"), user, { x: 500, y: 520 }),
|
||||||
createElementFromPalette(requirePaletteItem(paletteItems, "invoice-tax-note"), user, { x: 56, y: 560 }),
|
horizontalLine(56, 560, 646),
|
||||||
horizontalLine(56, 600, 646),
|
createElementFromPalette(requirePaletteItem(paletteItems, "payment-terms"), user, { x: 56, y: 580 }),
|
||||||
createElementFromPalette(requirePaletteItem(paletteItems, "payment-terms"), user, { x: 56, y: 620 }),
|
createElementFromPalette(requirePaletteItem(paletteItems, "bank-details"), user, { x: 56, y: 620 }),
|
||||||
createElementFromPalette(requirePaletteItem(paletteItems, "bank-details"), user, { x: 56, y: 660 }),
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user