Add InvoiceService and initial invoice dashboard widget

This commit is contained in:
2026-05-27 11:12:26 +02:00
parent 56bf75bf74
commit 167bee78f8
7 changed files with 198 additions and 24 deletions
@@ -479,7 +479,7 @@ const updateLineItems = (newItems: LineItem[]) => {
// Calculate the new total amount
let total = 0;
updatedItems.forEach(item => {
updatedItems.forEach((item: LineItem) => {
total += item.quantity * item.price;
});
invoice.value.totalAmount = total;