How to bill items at different times in one month?
← Billing & Invoice Management FAQ
Your business may require to apply the two options for item-specific billing practices Invoicing in advance
and Invoicing in arrears
in one month.
Assume the following example:
- There are two items with a one-month service period, like 1 May–31 May.
- One item is to be billed in advance (at the beginning of the service period), the other item is to be billed in arrears – that is, at the end of the service period.
- The invoice run is set up to cover one month.
By default, JustOn Billing & Invoice Management will bill the two items at the same time since the items' service periods and the invoice run period coincide. The billing practice would have no effect.
So what billing configuration will cover this use case?
Basically, you need two subscriptions – one for each applicable billing practice – and configure the invoice run to include one or the other subscription.
To this end, proceed as follows:
- Add a custom field to the Subscription object to indicate the billing practice, like a picklist field
Billing Practice
with the two optionsInvoicing in advance
andInvoicing in arrears
. -
Create dedicated subscriptions for the two billing practices and add the items accordingly.
- For one subscription, select the picklist value
Invoicing in advance
, and add the items where the billing practice is set toInvoicing in advance
. - For the other subscription, select the picklist value
Invoicing in arrears
, and add the items where the billing practice is set toInvoicing in arrears
.
- For one subscription, select the picklist value
-
Create dedicated subscription filters for the two billing practices, like
bill_advance
andbill_arrears
.- For the first subscription filter (
bill_advance
), set the conditionBillingPractice__c = 'Invoicing in advance'
. - For the other subscription filter (
bill_arrears
), set the conditionBillingPractice__c = 'Invoicing in arrears'
.
- For the first subscription filter (
-
Create dedicated batch parameters for the two subscription filters, like
ir_advance
andir_arrears
.- For the first batch parameter (
ir_advance
), set the parametersInvoiceRunFilter = bill_advance
andAlignment = current
. - For the other batch parameter (
ir_arrears
), set the parametersInvoiceRunFilter = bill_arrears
andAlignment = current
.
- For the first batch parameter (
-
Schedule dedicated invoice run jobs for the two batch parameters.
- Schedule
ir_advance
to run on the first day of the service period. - Schedule
ir_arrears
to run on the last day of the service period.
- Schedule