I fixed the page. I didn't fully test it after updating. There were two issues.
1) the trigger issue that you pointed out previously where the trigger gets mangled when updating. I'll have to look into that one further, but I've fixed it on your page for now.
2) you had a line: if (isset($rs_Search1->getColumnVal('invId')))
you can't use isset() with a function result. I updated it to: if (!empty($rs_Search1->getColumnVal('invId')))
The page appears to load properly now.