fixed ordering dates for invoices