Quintiq file version 2.0
|
#parent: #root
|
StaticMethod Create (
|
GlobalOTDSOP globalOTDSOP,
|
String scenarioName
|
) as SalesVolumePanelAllocationFromScenario
|
{
|
TextBody:
|
[*
|
targetSalesVolumePanelAllocationFromScenario := select( globalOTDSOP, SalesVolumePanelAllocationFromScenario, tempSVPAFS,
|
tempSVPAFS.ScenarioName() = scenarioName );
|
|
if ( not isnull( targetSalesVolumePanelAllocationFromScenario ) ) {
|
targetSalesVolumePanelAllocationFromScenario.Delete();
|
}
|
|
targetSalesVolumePanelAllocationFromScenario := globalOTDSOP.SalesVolumePanelAllocationFromScenario( relnew, ScenarioName := scenarioName );
|
|
return targetSalesVolumePanelAllocationFromScenario;
|
*]
|
}
|