Rechnungsbeträge deutsch formatieren

This commit is contained in:
2026-07-20 10:17:00 +02:00
parent ae379b0f22
commit 720c70845e
4 changed files with 27 additions and 10 deletions

View File

@@ -1409,11 +1409,11 @@ const getDocumentData = async () => {
return {
...row,
rowAmount: `${getRowAmount(row)}`,
rowAmount: renderCurrency(Number(row.quantity) * Number(row.price) * (1 - Number(row.discountPercent) / 100)),
quantity: String(row.quantity).replace(".", ","),
unit: unit.short,
pos: String(row.pos),
price: `${String(row.price.toFixed(2)).replace(".", ",")}`,
price: renderCurrency(row.price),
discountText: `(Rabatt: ${row.discountPercent} %)`
}
} else {