From de9d75f99a4797f1b45ba704ab29aa3d9c9680ac Mon Sep 17 00:00:00 2001 From: rix1337 <> Date: Sun, 30 Jul 2023 14:41:42 +0200 Subject: [PATCH] Calculate remaining budget for current month correctly --- budgeteer/web_interface/vuejs_frontend/src/components/Head.vue | 2 -- 1 file changed, 2 deletions(-) diff --git a/budgeteer/web_interface/vuejs_frontend/src/components/Head.vue b/budgeteer/web_interface/vuejs_frontend/src/components/Head.vue index 34dbdf4..1b8bfe5 100644 --- a/budgeteer/web_interface/vuejs_frontend/src/components/Head.vue +++ b/budgeteer/web_interface/vuejs_frontend/src/components/Head.vue @@ -73,8 +73,6 @@ const current_budget = computed({ for (let i = 0; i < store.state.data.budgets.length; i++) { for (let j = 0; j < store.state.data.budgets[i].entries.length; j++) { let amount = parseFloat(store.state.data.budgets[i].entries[j].amount) - // TODO: check if valid_from_to is in current month - console.log(checkEntryInDisplayMonthAndNotBooked(store.state.data.budgets[i].entries[j])) if (!isNaN(amount) && checkEntryInDisplayMonthAndNotBooked(store.state.data.budgets[i].entries[j])) { current_budget_total_amount += amount }