use view model to generate invoices