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
34
35
36
37
38
39
40
41
42
43
44
| Quintiq file version 2.0
| #parent: #root
| StaticMethod Create (
| Operation owner,
| ProductInStockingPoint_MP pisp,
| Boolean isinput,
| Number groupid,
| Boolean hasuserquantity,
| Real quantity,
| Real minquantity,
| Real maxquantity,
| Boolean isexcluded,
| Boolean isfromdb
| ) as OperationBOM
| {
| Description: 'Create new pisp link'
| TextBody:
| [*
| // DWE2 Mar-25-2016 (created)
|
| pisplink := owner.OperationBOM( relnew,
| OperationID := owner.ID(),
| ProductID := pisp.ProductID(),
| StockingPointID := pisp.StockingPointID(),
| IsInput := isinput,
| AsInputOperationLink := ifexpr( isinput, owner, null( Operation ) ), // We need the relation in batch creation
| AsOutputOperationLink := ifexpr( not isinput, owner, null( Operation ) ) ); // We need the relation in batch creation
|
| pisplink.Update( owner,
| pisp.ProductID(),
| pisp.StockingPointID(),
| isinput,
| groupid,
| hasuserquantity,
| quantity,
| minquantity,
| maxquantity,
| isexcluded,
| '',
| isfromdb );
|
| return pisplink;
| *]
| }
|
|