Add InvoiceService and initial invoice dashboard widget
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user