ADD: adden rechnungne ohne ust id und logout button

This commit is contained in:
hwinkel
2026-03-11 23:23:24 +01:00
parent f9307d9f4a
commit b8e981eaf3
17 changed files with 263 additions and 115 deletions
+8
View File
@@ -15,6 +15,14 @@ export function calcItemAmounts(
return { netAmount, taxAmount, grossAmount };
}
export function calcItemAmountsKleinunternehmer(
quantity: number,
unitPrice: number
) {
const grossAmount = Math.round(quantity * unitPrice * 100) / 100;
return { netAmount: grossAmount, taxAmount: 0, grossAmount };
}
export function calcInvoiceTotals(
items: Array<{ netAmount: number; taxAmount: number; grossAmount: number }>
) {