def get_income_total(self) -> Decimal:
        """ Sum of all income = sum of balances of all income accounts. """
        accounts = self.get_income_accounts()
        # log(DEBUG, "income accounts: %s", accounts)
        income = Decimal(0)
        for acct in accounts:
            income += acct.get_balance()
        return income
def get_income_total ( self ) -> Decimal : accounts = self . get_income_accounts ( ) income = Decimal ( 0 ) for acct in accounts : income += acct . get_balance ( ) return income
Sum of all income = sum of balances of all income accounts.