Add dynamic elements to invoice template.
Add class to totals template.