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
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method CanCreate ( 
 |    output String feedback_o, 
 |    ProductInStockingPoint_MPs pisps 
 |  ) remote as Boolean 
 |  { 
 |    Description: 'Returns true if PISP nodes can be dropped into canvas, such that the PISP must be non-system PISP.' 
 |    TextBody: 
 |    [* 
 |      // Adhi Feb-20-2016 (created) 
 |       
 |      // Will still allow if any of the pisps are non-system 
 |      value := exists( pisps, 
 |                       Elements, 
 |                       pisp, 
 |                       not pisp.IsSystem() ); 
 |       
 |      if( not value ) 
 |      { 
 |        feedback_o := Translations::MP_PISPNodeInRouting_CanDropNodeToCanvas_NonSystemPISPs(); 
 |      } 
 |       
 |      return value; 
 |    *] 
 |  } 
 |  
  |