ProBoard
Other
OtherPublié 26 sept.

Tkinter expense tracker: total ignores the first row

The total does not include the first transaction, so the sum is always wrong.

Description

Expense tracker (Tkinter), calculations in `expenses/calc.py`. Problem: the window footer shows a total that is short by the first transaction. Users compare it with the table and lose trust in the app. Amount parsing works. Expected: - `total()` sums every row; - empty list returns `0.0`; - `by_category()` keeps matching the table (it is already correct), amounts are rounded to 2 decimals. Acceptance: `python -m unittest discover -s tests` passes. Ping me and I'll send the archive. PayPal is fine, I can also do Wise.

Compétences

  • Python
  • Tkinter