wrong condition in Order::invoiceNumber() was causing repeated entries 

it was missing "LIKE" statement so it could find records matching the current date