| Quintiq file version 2.0 | 
| #parent: #root | 
| Function CalcSanityCheckLotSizeAttributes | 
| { | 
|   TextBody: | 
|   [* | 
|     if ( not this.MacroPlan().IsMetaOptimizerRunning() )  | 
|     { | 
|       feedback := construct( Strings ); | 
|       sanitycheckfeedback := construct( Strings ); | 
|        | 
|       this.DoSanityCheckGroupLotSize( feedback, sanitycheckfeedback ); | 
|        | 
|       mostseveryviolation := SanityCheckCategoryLevel::GetMostSevereSanityCheckViolation( sanitycheckfeedback ); | 
|       violationcount := SanityCheckCategoryLevel::GetSanityCheckViolationCount( sanitycheckfeedback, mostseveryviolation ); | 
|        | 
|        | 
|       this.SanityCheckLotSizeMostSevere( mostseveryviolation ); | 
|       this.SanityCheckLotSizeMostSevereCount( violationcount ); | 
|       this.SanityCheckLotSizeTotalViolationCount( feedback.Size() ); | 
|     } | 
|   *] | 
| } |