added invoice lookup code --KW