Quintiq file version 2.0 
 | 
#parent: #root 
 | 
StaticMethod GetShelfLifeDetails ( 
 | 
  BinaryValue quantityvectorasbv, 
 | 
  BinaryValue agevectorasbv 
 | 
) const declarative remote as owning Strings 
 | 
{ 
 | 
  Description: 'This method will return the concatenated shelf-life details. E.g. Quantity(Age), Quantity(Age), ...' 
 | 
  TextBody: 
 | 
  [* 
 | 
    value := construct( Strings ); 
 | 
    agevector := RealVector::Construct( agevectorasbv ); 
 | 
    quantityvector := RealVector::Construct( quantityvectorasbv ); 
 | 
     
 | 
    agevector_size := agevector.Size(); 
 | 
    for( i := 0; i < agevector_size; i++ ) 
 | 
    { 
 | 
      age := agevector.Get( i ).Format( "N(Dec(0))" ); 
 | 
      quantity := quantityvector.Get( i ).Format( "N(Dec(0))" ); 
 | 
       
 | 
      string := quantity + "(<" + age + ")"; 
 | 
      value.Add( string ); 
 | 
    } 
 | 
     
 | 
    return &value; 
 | 
  *] 
 | 
} 
 |