The Realized Sales section is part of the Opportunity Product Forecasting functionality, aimed at capturing and managing realized sales for products associated with opportunities. It supports the creation, update, and synchronization of realized sales records (ORSY), linking opportunity line items to forecasted product sales for specific years.
The purpose of this document is to provide an overview of the functionality and design for managing realized sales, including creation, update, and deletion processes based on product forecasts.
This functional design covers the Realized Sales section, focusing on the following features:
SLV_Product_Forecast__c.The system automatically creates Opportunity_Realized_Sales_Year__c (ORSY) records when a product forecast (SLV_Product_Forecast__c) is created or updated. ORSY records track realized sales for a given opportunity product over a specific year.
SLV_Product_Forecast__c)SLV_Opportunity__c)SLV_Product__c)SLV_Year__c)CurrencyIsoCode)Opportunity__c): The opportunity to which the realized sales relate.Opportunity_Product_Id__c): The specific product line item associated with the opportunity.Year__c): The year the realized sales are tracked for.Product__c): The product being forecasted.CurrencyIsoCode): The currency of the forecasted and realized sales.ORSY records are synchronized with their associated opportunity and product line items based on the product forecasts. When changes occur in the forecast data, the corresponding ORSY records must be updated or created.
SLV_Product_Forecast__c):OpportunityLineItem based on the opportunity and product fields.SLV_Product_Forecast__c and OpportunityLineItem records.Opportunity__c)Opportunity_Product_Id__c)Year__c)Product__c)The system supports updates to ORSY records based on changes in the product forecast. Key financial fields, such as price, volume, and contribution margin, are updated if modified in the forecast.
SLV_Price__c): Updated from product forecast.SLV_Volume__c): Updated from product forecast.SLV_Contribution_Margin__c): Updated based on changes in the forecast contribution margin.Year__c): Cannot be updated after creation. If the forecast year changes, a new ORSY record is created for the new year.Opportunity__c and Opportunity_Product_Id__c): These fields are static once the ORSY record is created. A change in product or opportunity will lead to the creation of a new ORSY record rather than updating the existing one.ORSY records are deleted when the corresponding product forecasts are removed. This ensures that orphaned ORSY records do not remain in the system.
SLV_Product_Forecast__c is deleted, the system identifies and deletes the associated ORSY records.Opportunity_Realized_Sales_Year__c records linked to the deleted product forecast and performing a bulk delete operation.Product Forecast (SLV_Product_Forecast__c) Created or Updated
|
v
Match Forecast to Opportunity Line Item (OLI)
|
v
Create or Update ORSY Records for the Forecast Year(s)
|
v
Insert or Update Financial Data in ORSY
mathematicProduct Forecast (SLV_Product_Forecast__c) Deleted
Find Related ORSY Records (Opportunity_Realized_Sales_Year__c)
Bulk Delete ORSY Records