diff --git a/apps/dashboard/src/forms/fr_accounting/summary.page.tsx b/apps/dashboard/src/forms/fr_accounting/summary.page.tsx index 6ae61873..bd788544 100644 --- a/apps/dashboard/src/forms/fr_accounting/summary.page.tsx +++ b/apps/dashboard/src/forms/fr_accounting/summary.page.tsx @@ -59,7 +59,13 @@ export function SummaryFormPage() { }) } - const totalPrice = 0 + const totalPrice = orders.reduce( + (acc, current) => + acc + + (current.unit_price ?? + current.quantity * current.product.unit_price), + 0 + ) const grossPrice = formatCurrency(totalPrice * 1.25)