Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method GetBaseOfProductDimension () declarative remote as owning ProductInStockingPointInPeriods 
 | 
{ 
 | 
  Description: 'Return the base pispips in product dimension' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // soh yee Sep-23-2014 (created) 
 | 
     
 | 
    pispips := construct( ProductInStockingPointInPeriods ); 
 | 
     
 | 
    if( this.IsBase() ) 
 | 
    { 
 | 
      pispips.Add( this ); 
 | 
    } 
 | 
    else 
 | 
    { 
 | 
      pisp := this.ProductInStockingPoint_MP(); 
 | 
     
 | 
      pispips := selectset( this, ProductInStockingPoint_MP.BaseProductInStockingPointInPeriod, bpispip, 
 | 
                            bpispip.ProductInStockingPoint_MP() = pisp 
 | 
                            and bpispip.Period_MP().IsInPeriod( this.Start(), this.End() ) ); 
 | 
       
 | 
       
 | 
    } 
 | 
    return &pispips; 
 | 
  *] 
 | 
} 
 |