Pending Invoice Approval Message

Purpose

This message is sent to notify people that can approve an invoice that one is pending action.

Send Trigger

This message is normally sent by the Update Trades batch job, but can be sent by the system when hire data is added retroactively.

Recipients

If the client company has the Gatekeep role

  • If the hiring manager, is also a gatekeeper, and “Send Hiring Manager e-mail” is selected on the job, add the hiring manager
  • If the job poster, is also a gatekeeper, add the job poster.
  • If neither of the above is true, if there are any gatekeepers in the client at all, send it to all of the gatekeepers, otherwise send to the clients super admins.

If the client company DOES NOT have the Gatekeep role

  • If “Send Hiring Manager e-mail” is selected on the job, add the hiring manager

For all cases, including the above

  • If the client has the Liaison role, add the liaison if one exists between the client and the agency
  • Add all of the sales managers, recruiting managers and assistant managers in the group, and all of the groups parents on the job
  • Add the members of the Candidate Submission Approval group of the opportunity on the job
  • Add all the users in the Invoice Notification Groups

Message Content

You must approve or reject the invoice for ${link.createTradeLink(trade)} at this time. If the candidate has reported for work, please approve this invoice.