take PricePerUnit from customer if not set in invoice position

This commit is contained in:
Torsten Ueberschar
2024-02-19 10:12:52 +01:00
parent 6f1120c8b4
commit b8bd3f288b
4 changed files with 24 additions and 15 deletions

View File

@@ -15,7 +15,6 @@ Positions:
- Title: "Aschkriechen"
SubTitle: "Leistungszeitraum: 10/2022"
PricePerUnit: 77.88
Quantity: 3

View File

@@ -112,6 +112,10 @@
border-top: .1pt solid black;
}
.center {
text-align: center;
}
.head_data {
width: 100%;
border-collapse: collapse;
@@ -136,7 +140,7 @@
<body>
<!-- Content for Static Frame 'header_frame' -->
<div id="address_frame_content">
<p class="underline">{{ envelope.AddressContent.AddressBoxSender }}</p>
<p class="underline small center">{{ envelope.AddressContent.AddressBoxSender }}</p>
<address>
{{ invoice.AddressField | markdown_to_html }}
</address>
@@ -188,20 +192,17 @@
{% endfor %}
<tr class="summe">
<td></td>
<td></td>
<td class="rechts">Nettosumme:</td>
<td colspan="2" class="rechts">Nettosumme:</td>
<td class="rechts">{{ format_float(calculate_total(invoice)) }}</td>
</tr>
<tr>
<td></td>
<td></td>
<td class="rechts">USt. ({{ format_float(invoice.Vat) }}%):</td>
<td colspan="2" class="rechts">USt. ({{ format_float(invoice.Vat) }}%):</td>
<td class="rechts">{{ format_float(calculate_total(invoice) * ((invoice.Vat / 100))) }}</td>
</tr>
<tr>
<td></td>
<td></td>
<td class="rechts bold overline">Gesamt Summe:</td>
<td colspan="2" class="rechts bold overline">Gesamt Summe:</td>
<td class="rechts bold overline">{{ format_float(calculate_total(invoice) * ((invoice.Vat / 100)+1)) }}</td>
</tr>
</table>