added compare date function to invoice class
added date comparator to order class and new constructor for past dates
Added profit and loss table - moved all test data to createInvoices
method to simplify