MWST optional: Schalter in Einstellungen (mwst_ausweisen), standardmassig Ausweis deaktiviert

This commit is contained in:
Erik Thiele
2026-07-02 14:39:12 +02:00
parent 4f3c6763ca
commit f77be1c07a
4 changed files with 32 additions and 15 deletions

View File

@@ -71,7 +71,7 @@
<div class="card-body p-0">
{% set stueckzahl = config.stueckzahl|default(1)|int %}
{% set gesamt_netto = (calc.verkaufspreis * stueckzahl)|round(2) %}
{% set gesamt_mwst = (gesamt_netto * 0.19)|round(2) %}
{% set gesamt_mwst = (gesamt_netto * 0.19)|round(2) if calc.mwst_ausweisen else 0 %}
{% set gesamt_brutto = (gesamt_netto + gesamt_mwst)|round(2) %}
<div class="p-3" style="font-family:'Courier New',Courier,monospace;font-size:13px;line-height:1.8;white-space:pre;overflow-x:auto;background:var(--tblr-bg-surface);">LEISTUNGSBESCHREIBUNG:
{{ '\u2500' * 50 }}
@@ -82,9 +82,9 @@ Gesamt: {{ "%.2f"|format(gesamt_netto) }} EUR
{{ '\u2500' * 50 }}
Nettobetrag: {{ "%.2f"|format(gesamt_netto) }} EUR
MwSt. (19%): {{ "%.2f"|format(gesamt_mwst) }} EUR
{{ '\u2550' * 50 }}
GESAMTBETRAG: {{ "%.2f"|format(gesamt_brutto) }} EUR
{% if calc.mwst_ausweisen %}MwSt. (19%): {{ "%.2f"|format(gesamt_mwst) }} EUR
{% endif %}{{ '\u2550' * 50 }}
GESAMTBETRAG{% if calc.mwst_ausweisen %} (brutto){% endif %}: {{ "%.2f"|format(gesamt_brutto) }} EUR
Zahlbar innerhalb von 14 Tagen ohne Abzug.
Vielen Dank fur Ihren Auftrag!</div>