added total and sum into invoices