[acc.id, acc.name]))
},
+ accountIsCategory() {
+ return this.account.type === 'category'
+ },
+
accountTypes() {
return Object.fromEntries(this.accounts.map(acc => [acc.id, acc.type]))
},
diff --git a/frontend/components/budgetDashboard.vue b/frontend/components/budgetDashboard.vue
index a15d504..64c78f2 100644
--- a/frontend/components/budgetDashboard.vue
+++ b/frontend/components/budgetDashboard.vue
@@ -63,7 +63,13 @@
{{ formatNumber(allocatedByCategory[cat.id] || 0) }} €
- {{ formatNumber(activityByCategory[cat.id] || 0) }} €
+
+ {{ formatNumber(activityByCategory[cat.id] || 0) }} €
+
|
|
+
+ {{ accountIdToName[edit.account] }}
+ |
[acc.id, acc.name]))
+ },
+
+ accountIsCategory() {
+ return this.account.type === 'category'
+ },
+
categories() {
const cats = this.accounts.filter(acc => acc.type === 'category')
cats.sort((a, b) => a.name.localeCompare(b.name))
|