function invalidinvoice

It was misspelled and not matching up with the correctly spelled defined one in the common.php file.