| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
 | | Quintiq file version 2.0 |  | #parent: #root |  | Function CalcServiceLevelBelowTarget |  | { |  |   TextBody: |  |   [* |  |     // Martijn Dec-1-2016 (created) |  |      |  |     value := sum( this, IterationServiceLevel, itsl, |  |                   exists( itsl, IterationPISPIP, itpispip, itpispip.TotalDemand() > 0.0 ),  // Only consider the service levels that are related to iteration pispips with sales demand |  |                   maxvalue( 0.0, itsl.ServiceLevelBase().TargetPercentage() - itsl.AchievedServiceLevel() ) ); |  |      |  |     this.ServiceLevelBelowTarget( value ); |  |   *] |  | } | 
 |