Previous | Next | Contents | Index | Navigation | Glossary | Library |
To avoid the creation of duplicate events, you can include logic in your billing extension to create an automatic event only if no unprocessed automatic events exist or if it will fit under the hard limit and be processed accordingly. Otherwise, the billing extension does not create the event, and you should delete the revenue without releasing it. If you do release the revenue, you need to calculate and insert the event manually.
In some transaction independent cases, you may wish to insert an amount that fits under the limit. In most transaction dependent cases, you should insert the entire amount, regardless of the limit to account for amounts based on processed transactions.
Suggestion: If you are creating positive and negative event amounts, create the negative amount first, so that it increases available funding.
If you include hard limit logic in your procedure, you need to consider multiple customers and hard limit processing.
For example, assume you are processing a surcharge extension and a retention extension in the regular processing section of invoice generation. The surcharge is executed before the retention based on the processing order of the billing extension definition. The surcharge event is created but is not yet included on the invoice. The retention extension relies on the total invoice amount. To get the total invoice amount, the retention extension must account for the surcharge event which is not yet included on the invoice.
You must include logic in your billing extension to read any automatic event created for projects and tasks in the same run and calling place.
Previous | Next | Contents | Index | Navigation | Glossary | Library |