Initiating Invoice Runs
An Invoice run is a scheduled batch job to generate invoices in bulk. The invoice run batch job creates invoices by selecting billing schedules with Status as Pending Billing and Ready for Invoice Date with less than or equal to Process Through Date. The Invoice Run job creates invoice line items from billing schedules. It fetches billing schedules in order by their ID or Name, which is the default behaviour for Salesforce Object Query Language (SOQL). For example, the Invoice Run job fetches the following billing schedules:
- BS-00000048
- BS-00000051
- BS-00000055
After the Invoice Run job is successful, you see the following invoice line items:
- II-0000000080
- II-0000000081
- II-0000000082
There is a one-to-one mapping between billing schedules and invoice line items. In this example, the invoice line item II-0000000080 is mapped to BS-00000048.
You can initiate an Invoice Run immediately or schedule it for the future and filter it by Account, Account Location, Product, or a custom filter based on your business requirements.