Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies To: Project Operations Integrated with ERP
Complete the following steps to configure an automated invoice run in Dynamics 365 Project operations.
In Project Operations, go to Settings > Recurring Invoice Setup.
Create a batch job, and name it Project operations create invoices. The name of the batch job must include the words "create invoices."
In the Job Type field, select None. By default, the Frequency Daily and Is Active options are set to Yes.
Select Run Workflow. In the Look Up Record dialog box, you see three workflows:
- ProcessRunCaller
- ProcessRunner
- UpdateRoleUtilization
Select ProcessRunCaller, and then select Add.
In the next dialog box, select OK. A Sleep workflow is followed by a Process workflow.
Note
You can also select ProcessRunner in step 5. Then, when you select OK, a Process workflow is followed by a Sleep workflow.
The ProcessRunCaller and ProcessRunner workflows create invoices. ProcessRunCaller calls ProcessRunner. ProcessRunner is the workflow that actually creates the invoices. It goes through all the contract lines that invoices must be created for, and it creates invoices for those lines. To determine the contract lines that invoices must be created for, the job looks at invoice run dates for the contract lines. If contract lines that belong to one contract have the same invoice run date, the transactions are combined into one invoice that has two invoice lines. If there are no transactions to create invoices for, the job skips invoice creation.
After ProcessRunner finishes running, it calls ProcessRunCaller, provides the end time, and closes. ProcessRunCaller then starts a timer that runs for 24 hours from the specified end time. At the end of the timer, ProcessRunCaller closes.
The batch process job for creating invoices is a recurrent job. If you run this batch process many times, you create multiple instances of the job and cause errors. Therefore, start the batch process only one time, and restart it only if it stops running.
Note
Batch invoicing only runs for project contract lines that are configured by invoice schedules. A contract line with a fixed price billing method must have milestones configured. A project contract line with a time and material billing method needs a date-based invoice schedule set up. The same applies to a project-based contract line.