Skip to content

Count Today in Totals is breaking the month balance #229

Closed
@araujoarthur0

Description

@araujoarthur0

Describe the issue
When disabling the "Count Today in Totals" preference, the actual day is not being counted anymore, but the missing balance of the other days is entering the total calculation.

To Reproduce
Steps to reproduce the behavior:

  1. Click on Edit
  2. Open Preferences
  3. Switch off "Count Today in Totals"
  4. You will see your month balance go into the negatives if there are unfilled days in the month.

Expected behavior
I expected the count total to simply stop calculating on the previous day, not for it ignore the current day and start counting the following unfilled ones.

Environment

  • Node/npm version: Node v10.20.1 / npm 6.9.0
  • OS: Windows 10
  • TTL version: master

Screenshots
counttoday

Additional context
I see the actual issue is that there used to be a break in the code that stopped month balance calculation, and it's now being avoided when you set the setting to off.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions