diff --git a/test_data/RG004711.yaml b/test_data/RG004711.yaml index 8e4b1f4..36dc6c2 100644 --- a/test_data/RG004711.yaml +++ b/test_data/RG004711.yaml @@ -9,7 +9,6 @@ Positions: Quantity: 100 - Title: "Aschlecken" - SubTitle: "Leistungszeitraum: 11/2022" PricePerUnit: 99.99 Quantity: 12 diff --git a/test_data/templates/invoice.html b/test_data/templates/invoice.html index 284bb41..e61ef6a 100644 --- a/test_data/templates/invoice.html +++ b/test_data/templates/invoice.html @@ -83,8 +83,8 @@ } .positionen { - padding-top: 1mm; - padding-bottom: 1mm; + padding-top: 1pt; + padding-bottom: 1pt; } .links { @@ -134,6 +134,14 @@ margin-left: -.55cm; } + .position_top { + padding-top: 1pt; + } + + .position_bottom { + padding-bottom: 1pt; + } + @@ -180,15 +188,18 @@ Betrag {% for position in invoice.Positions %} - - {{ position.Title }}
{{ position.SubTitle }} - {{ format_float(position.Quantity | float) }} - {{ format_float((position.PricePerUnit or invoice.PricePerUnit) | float) }} + + {{ position.Title }} + {{ format_float(position.Quantity | float) }} + {{ format_float((position.PricePerUnit or invoice.PricePerUnit) | float) }} - {{ format_float(position.Quantity * ( position.PricePerUnit or + {{ format_float(position.Quantity * ( position.PricePerUnit or invoice.PricePerUnit ))}} + + {{ position.SubTitle }} + {% endfor %}