fix visual position grouping
This commit is contained in:
@@ -9,7 +9,6 @@ Positions:
|
|||||||
Quantity: 100
|
Quantity: 100
|
||||||
|
|
||||||
- Title: "Aschlecken"
|
- Title: "Aschlecken"
|
||||||
SubTitle: "Leistungszeitraum: 11/2022"
|
|
||||||
PricePerUnit: 99.99
|
PricePerUnit: 99.99
|
||||||
Quantity: 12
|
Quantity: 12
|
||||||
|
|
||||||
|
|||||||
@@ -83,8 +83,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.positionen {
|
.positionen {
|
||||||
padding-top: 1mm;
|
padding-top: 1pt;
|
||||||
padding-bottom: 1mm;
|
padding-bottom: 1pt;
|
||||||
}
|
}
|
||||||
|
|
||||||
.links {
|
.links {
|
||||||
@@ -134,6 +134,14 @@
|
|||||||
margin-left: -.55cm;
|
margin-left: -.55cm;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.position_top {
|
||||||
|
padding-top: 1pt;
|
||||||
|
}
|
||||||
|
|
||||||
|
.position_bottom {
|
||||||
|
padding-bottom: 1pt;
|
||||||
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
@@ -180,15 +188,18 @@
|
|||||||
<th class="rechts" style="width: 15%">Betrag</th>
|
<th class="rechts" style="width: 15%">Betrag</th>
|
||||||
</tr>
|
</tr>
|
||||||
{% for position in invoice.Positions %}
|
{% for position in invoice.Positions %}
|
||||||
<tr class="positionen">
|
<tr>
|
||||||
<td class="links">{{ position.Title }}<br><span class="small">{{ position.SubTitle }}</span></td>
|
<td class="links position_top">{{ position.Title }}</td>
|
||||||
<td class="rechts">{{ format_float(position.Quantity | float) }}</td>
|
<td class="rechts" rowspan="2">{{ format_float(position.Quantity | float) }}</td>
|
||||||
<td class="rechts">{{ format_float((position.PricePerUnit or invoice.PricePerUnit) | float) }}
|
<td class="rechts" rowspan="2">{{ format_float((position.PricePerUnit or invoice.PricePerUnit) | float) }}
|
||||||
</td>
|
</td>
|
||||||
<td class="rechts">{{ format_float(position.Quantity * ( position.PricePerUnit or
|
<td class="rechts" rowspan="2">{{ format_float(position.Quantity * ( position.PricePerUnit or
|
||||||
invoice.PricePerUnit ))}}
|
invoice.PricePerUnit ))}}
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="links small position_bottom">{{ position.SubTitle }}</td>
|
||||||
|
</tr>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<tr class="summe">
|
<tr class="summe">
|
||||||
<td></td>
|
<td></td>
|
||||||
|
|||||||
Reference in New Issue
Block a user