| Quintiq file version 2.0 | 
| #parent: #root | 
| Function CalcSanityCheckBalanceAttributes | 
| { | 
|   TextBody: | 
|   [* | 
|     feedback := construct( Strings ); | 
|     sanitycheckfeedback := construct( Strings ); | 
|      | 
|     this.ProductInStockingPointInPeriodPlanning().DoSanityCheckGroupBalance( feedback, sanitycheckfeedback );  | 
|      | 
|     mostseveryviolation := SanityCheckCategoryLevel::GetMostSevereSanityCheckViolation( sanitycheckfeedback ); | 
|     violationcount := SanityCheckCategoryLevel::GetSanityCheckViolationCount( sanitycheckfeedback, mostseveryviolation ); | 
|      | 
|      | 
|     this.SanityCheckBalanceMostSevere( mostseveryviolation ); | 
|     this.SanityCheckBalanceMostSevereCount( violationcount ); | 
|     this.SanityCheckBalanceTotalViolationCount( feedback.Size() ); | 
|   *] | 
| } |