Quintiq file version 2.0
|
#parent: #root
|
StaticMethod GetShelfLifeDetailsForDependentDemand (
|
DependentDemand dependentdemand
|
) const declarative remote as owning Strings
|
{
|
Description: 'This method will return the concatenated shelf-life details. E.g. Quantity(Age), Quantity(Age), ... for DependentDemand.ShelfLifeAge/QtyVector'
|
TextBody:
|
[*
|
value := construct( Strings );
|
|
agevector := RealVector::Construct( dependentdemand.ShelfLifeAgeVectorAsBinaryValue() );
|
quantityvector := RealVector::Construct( dependentdemand.ShelfLifeQuantityVectorAsBinaryValue() );
|
|
agevector := agevector.Plus( dependentdemand.ProductInStockingPointInPeriodPlanningLeaf().Period_MP().GetDurationInDaysForShelfLife() );
|
agevector_size := agevector.Size();
|
|
for( i := 0; i < agevector_size; i++ )
|
{
|
age := agevector.Get( i );
|
quantity := [Number] quantityvector.Get( i );
|
|
string := [String] quantity + "(" + [String] age + ")";
|
value.Add( string );
|
}
|
|
return &value;
|
*]
|
}
|