Loading
Get Started with Communications, Media, and Energy & Utilities (CME)...
DefaultTimePolicyImplementation

DefaultTimePolicyImplementation

Calculate start and end dates for certain records based on the context and input. For example, when adding a promotion to an order, this implementation calculates and sets the start date and end date for all order applied promotion and order pricing adjustment records according to the Time Policy and Time Plan that were set on the promotion.

If the time policy is set to start at the purchase date and end at the end of plan duration, the implementation sets the applied promotion start date to be the purchase date, and the end date to the purchase date plus time plan duration.

You may want to extend the functionality to support other start and end policies or other units of measure for time plans.

Interface

TimePolicyInterfaceTimePolicyInterface

Sample Code

See TimePolicyInterfaceTimePolicyInterface.

Related Implementations

None

 
Loading
Salesforce Help | Article