Improve get_balance and get_credit_debit by enforcing same company per chart

issue2277
review956002