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
45
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod Create ( 
 |    Operation owner, 
 |    String productid, 
 |    String spid, 
 |    Boolean isinput, 
 |    Number groupid, 
 |    Boolean hasuserquantity, 
 |    Real quantity, 
 |    Real minquantity, 
 |    Real maxquantity, 
 |    Boolean isfromdb, 
 |    Boolean isexcluded 
 |  ) as OperationBOM 
 |  { 
 |    Description: 'Create new pisp link for MPSync' 
 |    TextBody: 
 |    [* 
 |      // DWE2 Mar-25-2016 (created) 
 |       
 |      pisplink := owner.OperationBOM( relnew, 
 |                                      OperationID := owner.ID(), 
 |                                      ProductID := productid, 
 |                                      StockingPointID := spid, 
 |                                      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, 
 |                       productid, 
 |                       spid, 
 |                       isinput, 
 |                       groupid, 
 |                       hasuserquantity, 
 |                       quantity, 
 |                       minquantity, 
 |                       maxquantity, 
 |                       isexcluded, 
 |                       '', 
 |                       isfromdb ); 
 |       
 |      return pisplink; 
 |    *] 
 |  } 
 |  
  |