Skip to main content
Question

Invoicing of service contract batch job to process todays invoice only

  • May 5, 2026
  • 1 reply
  • 20 views

How can one configure scheduled service contract batch job to process only today’s invoices — without including past ones — and without customizing the code?

The current parameter processes both current and past invoices.


Thank you in advance
 

1 reply

Thilini Kumarasinghe
Ultimate Hero (Employee)
Forum|alt.badge.img+21

Hi,

By design, the system expects users to generate invoices sequentially, meaning invoices for earlier periods should be created before proceeding to later periods. If any previous invoice plan lines are missed, the system will automatically include those missing periods when generating the current invoice. This is why, as you have observed, invoices are generated for previous periods as well.


To illustrate this with an example:

1) Consider a service contract where you attempt to generate an invoice preview for the period March.
2) When doing so, the system first generates invoice plan lines for all prior periods that have not yet been invoiced.
3) If you proceed to create an invoice for the March period, the following message will be displayed:
"There are 2 invoice periods for the selected service line before 2026-03-01 that are not included in the current selection. The system will generate invoices for all these periods. If you want to create the invoice for the selected line(s) only, please use the menu action 'Create One Time Invoice' instead. Do you want to continue?"
4) This message indicates that, according to standard system behavior, invoices will be generated for all pending previous periods before creating the invoice for March. This aligns with the behavior you observed when using the batch job as well.
5) However, if the intention is to generate an invoice strictly for a specific period without including prior periods, you can use the "Create One Time Invoice" option. This will ensure that only the selected period is invoiced.

 

Hope this helps.

Best Regards,

Thilini