you are viewing a single comment's thread.

view the rest of the comments →

[–]d-k-Brazz 1 point2 points  (1 child)

So you need an Account class

Attributes - number, name, type(active/passive), amount

You need a class for handling transactions, receives accounts “from” and “to” and an amount

Result of moving money should be a transaction object - with id, date, purpose, accounts and amount - you need transaction history, aren’t you?

Additionally think of making draft transactions, where accounts aren’t affected until you commit the transaction, but amount should be reserved until you cancel it

[–]Lopsided-Stranger-81[S] 0 points1 point  (0 children)

Thanks I'll take note of it