Invoice generation, Invoice DTOs and server methods for invoices