Setting up a Job to Generate Billing Schedules

You can schedule the GenerateBillingSchedulesSchedulable Apex job to create billing schedules. Billing Schedules are generated from the end date of the last billing schedule of a contract or the start date of the contract if there are no billing schedules. When the job runs, it creates billing schedules from the contract start date up to today plus the number of months specified in the Billing Schedule Number of Months field in the Billing Central Settings custom setting. See Billing Schedule Number of Months.

To schedule the job:

  1. From Setup, in the Platform Tools section, click Custom Code | Apex Classes.
  2. Click Schedule Apex.
  3. Enter a meaningful Job Name.
  4. Enter the Apex Class GenerateBillingSchedulesSchedulable.
  5. Choose the frequency that you want the job to run:
    • Weekly. Choose the days of the week on which the job is to run.
    • Monthly. Choose the day of the month either by specifying a number such as day 17 of every month, or by specifying a pattern such as the 3rd Tuesday of every month.
  6. Enter the date range for which the job is to run.
  7. Enter a Preferred Start Time for the job.
  8. Click Save.