added getInvoicesByDate()