Adding previous balance and/or closing balance to an invoice?

Similar topic. It’s already in ideas and I’d like to implement ability to choose whether to show invoice balance, customer balance or no balance at all.