ffrr.RevenueRecognitionService
global with sharing class RevenueRecognitionService
Contains methods for Revenue Recognition operations.
Methods
recognize
global static Id recognize(ffrr.RevenueRecognitionService.RecognizeConfig config)
Enqueues a batch apex job which recognizes revenue for all primary sobject types and all currencies.
Input Parameters
Return Value
Id to track progress of job.
Sample Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | ffrr.RevenueRecognitionService.RecognizeConfig config = new ffrr.RevenueRecognitionService.RecognizeConfig();
config.recognitionDate = Date.today();
config.shouldCommit = true ;
config.currencyIsoCodes = new List<String>{ 'USD' , 'GBP' };
ffrr.RevenueRecognitionService.recognize(config);
|
ffrr.RevenueRecognitionService.RecognizeConfig
global inherited sharing class RecognizeConfig
Class that contains the configuration required to successfully run the recognize process.
Sample Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ffrr.RevenueRecognitionService.RecognizeConfig config = new ffrr.RevenueRecognitionService.RecognizeConfig();
config.recognitionDate = Date.today();
config.shouldCommit = true ;
config.currencyIsoCodes = new List<String>{ 'USD' , 'GBP' };
|
Properties
recognitionDate |
Date |
Date on which to base the calculation.
|
shouldCommit |
Boolean |
Whether or not transactions are to be Committed.
|
currencyIsoCodes |
List<String> |
The currency ISO codes the records should be recognized for. These must be valid Salesforce CurrencyIsoCodes.
|
Methods
|