tons of minor changes, including quantity check, minor JS stuff, search invoice by inv_number