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
33
| Quintiq file version 2.0
| #parent: #root
| Method CreateLane (
| String laneID,
| String originSP,
| String destinationSP,
| String productID,
| Real leadTimeInDays
| ) as Lane
| {
| TextBody:
| [*
| origins := StockingPoint_MP::FindStockingPointTypeIndex( originSP );
| destinations := StockingPoint_MP::FindStockingPointTypeIndex( destinationSP );
|
| lane := Lane::Create( laneID,
| this,
| laneID,
| true,
| Date::MinDate(),
| Date::MaxDate(),
| Duration::Days( leadTimeInDays ),
| Duration::Zero(),
| false );
| lane.AddStockingPoint( origins, true /*as origin */, false );
| lane.AddStockingPoint( destinations, false /*as origin */, false );
|
| product := Product_MP::FindProductTypeIndex( productID );
| ProductInLane::Create( product, lane, false, false );
|
| return lane;
| *]
| }
|
|