change in invoicenum search method in invoice model