Try deleting the existing deployment and re-creating one for the Invoice. Also make sure that 'All Roles' and 'All Employees' checkboxes are checked on the deployment record.
Also use a try-catch block for your code. In the catch section use 'console.log' to check for errors, if any.