1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method GetProduct () declarative remote as Product_MP 
 |  { 
 |    Description: 'Get the product(s) that are being transported by this period task, to be used by configurable column' 
 |    TextBody: 
 |    [* 
 |      ddprods := selectset( this, DependentDemand.ProductInStockingPointInPeriodPlanningLeaf.ProductInStockingPoint_MP.Product_MP, prod, true ) 
 |      nsprods := selectset( this, NewSupply.ProductInStockingPointInPeriodPlanningLeaf.ProductInStockingPoint_MP.Product_MP, prod, true ) 
 |       
 |      result := null( Product_MP ); 
 |      if( not isnull( ddprods ) and  not isnull( nsprods ) ) 
 |      { 
 |        result := ddprods.Intersect( nsprods ).Element( 0 ); 
 |      } 
 |       
 |      return result; 
 |    *] 
 |  } 
 |  
  |