1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method GetMinCapacityErrorMessage ( 
 |    Unit unit, 
 |    Real expected, 
 |    UnitPeriodQuantity unitPeriod 
 |  ) as String 
 |  { 
 |    Description: 'Return error message to inform incorrect min capacity compared to expectation.' 
 |    TextBody: 
 |    [* 
 |      return 'Unit [' + unit.Name()  
 |             + '] has expected min capacity of ' + expected.Format( 'N(Dec(2),Thousands) ' ) 
 |             + ' instead of ' + unitPeriod.TotalMinCapacity().Format( 'N(Dec(2),Thousands) ' ) 
 |             + ' on start ' + unitPeriod.Start().Format( 'MEDIUMDATE' ); 
 |    *] 
 |    InterfaceProperties { Accessibility: 'Module' } 
 |  } 
 |  
  |