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

Implement basic functionality for Transaction.py #4

Closed ngiachou closed 5 years ago

ngiachou commented 5 years ago

Main task

Tansaction.py should contain a single class Transaction which encapsulates basic functionality of a single transaction.

It should contain the following properties:

__init__() should be implemented. __repr__() could be implemented. The representation should be a string of the following form: "(<date>, <environment_characteristic>, <place>, <product_list>)", where date could be any date (possibly not in the future), place depends on the implementation and a list of products (possibly should be checked if the list is empty, since it doesn't make any sense to have an empty product list in a transaction).

Example: a possible string representation of a transaction could be the following:

Additional material

This material will help you implement all of the above.

ngiachou commented 5 years ago

Closed since changes were merged and solved this issue.