restore debug invoice class code