Converted account report old to new api

Hello

I have converted postgres report old to new API.

thanks.
Use Active Record Pattern:
record.starting_balance = current_sum[record.company_id.id]
Instead of:
res[record.id]['starting_balance'] = current_sum[record.company_id.id]