ngiachou / WalletHero

A hero we all deserve. Tracking your monthly costs was never been so much fun.
GNU General Public License v3.0
0 stars 0 forks source link

Account class basic staff #25 #26

Closed ngiachou closed 5 years ago

ngiachou commented 5 years ago

Implements #25 Made a lot of changes. The usage is basically creating an account object, then using the new_transaction() method you can add new transactions to a dictionary which holds every transaction ever made.

The self._balance attribute is the total balance of the account while the self._monthly_target attribute is the target budget for the current month.

More functionality is needed. For example, a method setting current monthly target, when that happens balance should be updated accordingly.