Fixed Problems in LinkedDocuments and Storno

This commit is contained in:
2025-01-17 18:49:19 +01:00
parent 6626bd568d
commit e71281dcee
2 changed files with 19 additions and 8 deletions

View File

@@ -215,6 +215,9 @@ const templateTypes = [
{
key: "invoices",
label: "Rechnungen"
},{
key: "cancellationInvoices",
label: "Stornorechnungen"
},{
key: "advanceInvoices",
label: "Abschlagsrechnungen"
@@ -269,7 +272,7 @@ const calculateDocSum = (row) => {
row.rows.forEach(row => {
if(row.mode === "normal" || row.mode === "service" || row.mode === "free") {
sum += row.quantity * row.price * (1 - row.discountPercent / 100) * (1 + row.taxPercent / 100)
sum += row.quantity * row.price * (1 - row.discountPercent / 100) * (1 + (row.taxPercent || 0) / 100)
}
})