Quintiq file version 2.0
|
#parent: #root
|
StaticMethod CreateData (
|
GlobalOTDSOP globalOTDSOP,
|
SalesVolumePanelAllocationFromScenario salesVolumePanelAllocationFromScenario
|
)
|
{
|
TextBody:
|
[*
|
salesVolumePanelAllocationFromScenario.SalesVolumePanelAllocationInOrder( relflush );
|
|
traverse ( globalOTDSOP, PeggingProduct_MP.PeggingProductInSalesDemandBase, ppisdb ) {
|
targetSalesVolumePanelAllocationInOrder := salesVolumePanelAllocationFromScenario.SalesVolumePanelAllocationInOrder( relnew,
|
BusinessType := ppisdb.BusinessType(),
|
ID := ppisdb.SalesDemandBaseID(),
|
OrderID := ppisdb.OrderID(),
|
Price := ppisdb.Price(),
|
ProductID := ppisdb.PeggingProduct_MP().ProductID(),
|
Quantity := ppisdb.Quantity(),
|
StartDate := ppisdb.StartDate(),
|
StockingPointID := ppisdb.StockingPointID() );
|
|
traverse ( ppisdb, PeggingResult, pr, pr.NumberOfPlies() = 0 ) {
|
SalesVolumePanelAllocationOrderAnalyse::Create( pr, targetSalesVolumePanelAllocationInOrder );
|
}
|
}
|
*]
|
}
|