Adjustment Spread Callback Class
Adjustment Spread Callback provides you a mechanism to restrict adjustment spread amount on option line items.
To use the Adjustment Spread Callback you must create a custom Apex class that implements the Apttus_Config2.CustomClass.IAdjustmentSpreadCallback interface and register the custom apex class with Adjustment Spread Callback Class. You must write your custom logic in the custom apex class.
The following methods are available in the Apttus_Config2.CustomClass.IAdjustmentSpreadCallback interface:
Method | Signature | Description |
---|---|---|
finish() | void finish() | This the last method that is executed after the callback is invoked. |
spreadBundleAdjustment() | List spreadBundleAdjustment(Apttus_Config2.LineItem, List) | You can use this method to restrict the adjustment spread amount on options from the Bundle line adjustment. |
spreadGroupAdjustment() | List spreadGroupAdjustment(Apttus_Config2.SummaryGroup, List, Map>) | You can use this method to restrict the adjustment spread amount on options from the summary group adjustment. |
start() | void start(Apttus_Config2.ProductConfiguration) | This is the first method that is executed when the callback is invoked. |
Example