Feature Request: Variable for customer debit balance on invoices

Is it possible to have a variable for the total amount that a customer owes us (his balance) so that we can with every invoice update him with the current debit.


Also, we need variables for Time (Invoice printed) and Quantity summary.