erpsetup: top room for the Vertragsbedingungen block on page 2 #97

Merged
sharang merged 1 commits from fix/erpsetup-quotation-page2-top into main 2026-10-28 08:26:56 +00:00
+3 -1
View File
@@ -288,7 +288,9 @@ var documentHTML = brand.Replace(`{%- set is_inv = doc.doctype == "Sales Invoice
document discount. -#}
{%- set line_discount = 0 - (doc.items | selectattr("rate", "lt", 0) | sum(attribute="amount")) if doc.items else 0 -%}
{%- set total_discount = net_discount + line_discount -%}
<div style="page-break-inside:avoid;">
{#- padding, not margin: wkhtmltopdf drops a margin at a page break, and the
block usually moves whole to page 2, which has no letter head. -#}
<div style="page-break-inside:avoid;padding-top:28px;">
<p class="sepa-head"><b>Vertragsbedingungen</b></p>
<table class="meta" style="margin-top:2px;page-break-inside:avoid;">
<tr><td class="k">Vertragsart</td><td>Monatlich wiederkehrende SaaS- und Hosting-Leistungen (Abonnement).</td></tr>