implemeted invoice search