Skip to content
This repository has been archived by the owner on Jun 30, 2024. It is now read-only.

Commit

Permalink
Calculate remaining budget for current month correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
rix1337 committed Jul 30, 2023
1 parent 4427d41 commit de9d75f
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit de9d75f

Please sign in to comment.