diff --git a/src/pages/05_quotation/MainPage.vue b/src/pages/05_quotation/MainPage.vue index 4b280ef6..b73c5f35 100644 --- a/src/pages/05_quotation/MainPage.vue +++ b/src/pages/05_quotation/MainPage.vue @@ -390,15 +390,7 @@ async function storeDataLocal(id: string) { color: hsl(var(--info-bg)); " > - {{ - quotationStats[ - pageState.currentTab === 'Invoice' - ? 'paymentInProcess' - : (toCamelCase( - pageState.currentTab, - ) as keyof typeof quotationStats) - ] - }} + {{ Object.values(quotationStats).reduce((a, c) => a + c, 0) }} - {{ pageState.total }} + {{ + Object.entries(stats).reduce( + (sum, [key, value]) => (key === 'canceled' ? sum : sum + value), + 0, + ) + }}