global static Map<Id, Map<Date, Decimal>> getRecognizedBetween(Set<Id> sourceIds, Date recognizedFrom, Date recognizedTo)
Provides the total revenue recognized by recognition date between the recognizedFrom and recognizedTo dates inclusive. Includes revenue on both Committed and Discarding transactions.
Input Parameters
Name
Type
Description
sourceIds
Set<Id>
Source record Ids.
recognizedFrom
Date
Start date to search from.
recognizedTo
Date
End date to search to.
Return Value
Map of source Record Id with revenue recognized per recognition date.
Sample Code
1
2
3
4
5
6
7
8
9
10
11
//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.
//Arguments required to be passed into the method.
global static Map<Id, Map<Date, Decimal>> getRecognizedCostBetween(Set<Id> sourceIds, Date recognizedFrom, Date recognizedTo)
Provides the total cost recognized by recognition date between the recognizedFrom and recognizedTo dates inclusive. Includes cost on both Committed and Discarding transactions.
Input Parameters
Name
Type
Description
sourceIds
Set<Id>
Source record Ids.
recognizedFrom
Date
Start date to search from.
recognizedTo
Date
End date to search to.
Return Value
Map of source Record Id with cost recognized per recognition date.
Sample Code
1
2
3
4
5
6
7
8
9
10
11
//Note: This sample code is for demonstration purposes only. It is not intended for
//use in a production environment, is not guaranteed against defects or errors, and
//is in no way optimized or streamlined.
//Arguments required to be passed into the method.