1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
| Quintiq file version 2.0
| #parent: #root
| StaticMethod Create (
| Product_MP owner,
| Lane lane,
| Boolean isexcluded,
| Boolean isfromdb
| ) as ProductInLane
| {
| Description: 'Create static method'
| TextBody:
| [*
| productinlane := owner.ProductInLane( relnew,
| ProductID := owner.ID(),
| LaneID := lane.ID(),
| Lane := lane );
|
| productinlane.Update( lane.ID(), owner.ID(), isexcluded, isfromdb );
|
| // Get all stocking point in lanes
| stockingpointinlanes := lane.GetStockingPointInLanes();
|
| // For each stocking point in lane, create PISP
| traverse( stockingpointinlanes, Elements, spil )
| {
| owner.AddToStockingPoint( spil.StockingPoint_MP() );
| }
|
| productinlane.IsManuallyConfigured( not isfromdb );
| return productinlane;
| *]
| }
|
|