How do I show paid and outstanding amount on invoices?