Skip to content

accountant

The Accountant class as a command manager responsible for managing bank and ledger.

Classes:

  • Accountant

    Accountant class responsible for managing bank and ledger.

Accountant

Accountant(bank: Bank, ledger: Ledger)

Accountant class responsible for managing bank and ledger.

Methods:

process_transaction

process_transaction(transaction: Transaction) -> bool

Execute the transaction and records it in history.

undo_last_transaction

undo_last_transaction() -> None

Reverse the last transaction.