1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method CleanData 
 |  { 
 |    TextBody: 
 |    [* 
 |      traverse( this, Routing.OperationInput, oi, oi.Factor() < 0.0001 )  
 |      { 
 |        debuginfo( 'Setting to 0', oi.Name(), ' from ', oi.Routing().Name(), ' factor = ', oi.Factor() );  
 |       
 |        oi.Factor( 100.0 ); // yes declarative logic - but seen case where a 1e-9 value does not get cleaned up 
 |        oi.Factor( 0.0 );  
 |        obj := oi.BaseOperationLink();  
 |        if ( obj.istype( OperationBOM ) )  
 |        { 
 |          obom := obj.astype( OperationBOM );  
 |       
 |          oi.Update( obom.HasUserInputQuantity(), oi.MinQuantity(), oi.MaxQuantity(), 0.0, oi.IsExcluded(), not obom.IsManuallyConfigured() );  
 |        } 
 |        else if ( obj.istype( OperationLink ) )  
 |        { 
 |          olink := obj.astype( OperationLink );  
 |          oi.Update( olink.DestHasUserQuantity(), oi.MinQuantity(), oi.MaxQuantity(), 0.0, oi.IsExcluded(), not olink.IsManuallyConfigured() );  
 |        } 
 |      } 
 |    *] 
 |    InterfaceProperties { Accessibility: 'Module' } 
 |  } 
 |  
  |