Quintiq file version 2.0 
 | 
#parent: #root 
 | 
MethodOverride IsUpstreamProcessInputAllowed ( 
 | 
  ProcessInputOutput upstreamPIO, 
 | 
  ProductInStockingPoint_MPs forbiddenPISPs 
 | 
) as Boolean 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    // edz1 June-08-2016 (created) 
 | 
     
 | 
    currentPISP := this.ProductInStockingPoint_MP(); 
 | 
    upstreamPISP := upstreamPIO.ProductInStockingPoint_MP(); 
 | 
     
 | 
    // Check forbidden PISPs list 
 | 
    condition1 := not( exists( forbiddenPISPs, Elements, pisp, pisp = upstreamPISP ) ); 
 | 
    condition2 := ( upstreamPISP.Product_MP() = currentPISP.Product_MP() ); 
 | 
     
 | 
     
 | 
    return condition1 and condition2; 
 | 
  *] 
 | 
} 
 |