Bernd Wurst commited on 2024-11-20 07:38:14
Zeige 1 geänderte Dateien mit 2 Einfügungen und 2 Löschungen.
... | ... |
@@ -221,12 +221,12 @@ def InvoiceToXML(invoice): |
221 | 221 |
nettopreis = el['price'] |
222 | 222 |
if part.vatType == 'gross': |
223 | 223 |
nettopreis = el['price'] / (1 + el['vat']) |
224 |
- li.agreement.net.amount = Decimal(f"{nettopreis:.3f}") |
|
224 |
+ li.agreement.net.amount = Decimal(f"{nettopreis:.2f}") |
|
225 | 225 |
|
226 | 226 |
nettosumme = el['total'] |
227 | 227 |
if part.vatType == 'gross': |
228 | 228 |
nettosumme = el['total'] / (1 + el['vat']) |
229 |
- li.settlement.monetary_summation.total_amount = Decimal(f"{nettosumme:.3f}") |
|
229 |
+ li.settlement.monetary_summation.total_amount = Decimal(f"{nettosumme:.2f}") |
|
230 | 230 |
|
231 | 231 |
summe_netto += nettosumme |
232 | 232 |
if part.vatType == 'net': |
233 | 233 |