1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method GetBasePISPIPs () as owning ProductInStockingPointInPeriods 
 |  { 
 |    TextBody: 
 |    [* 
 |      pispips := selectset( this, 
 |                            ProductInStockingPoint_MP.ProductInStockingPointInPeriod, 
 |                            pispip, 
 |                            pispip.Period_MP().IsBase() 
 |                            and ( not pispip.Period_MP().IsInHour() 
 |                                  or pispip.Period_MP().IsLastPeriodOfDay() ) // If the base period is hourly bucket, get the last bucket of the day 
 |                            and pispip.Period_MP().IsInPeriod( this.StartDate(), this.EndDate() ) ) 
 |       
 |      return &pispips; 
 |    *] 
 |  } 
 |  
  |