Quintiq file version 2.0
|
#parent: #root
|
Method GetIsValidPlannedQuantity (
|
output Strings feedback_o,
|
output Strings sanitycheckfeedback_o
|
) declarative remote as Boolean
|
{
|
Description: 'Check whether the planned quantity <= Netted quantity'
|
TextBody:
|
[*
|
gp := this.MacroPlan().GlobalParameters_MP();
|
isvalid := this.CustomerOrderForNetting( relsize ) = 0
|
or this.NettedQuantity()>= this.FulfilledQuantity()
|
or gp.GetIsBalanceWithinTolerance( this.FulfilledQuantity(), this.NettedQuantity() );
|
|
if( not isnull( feedback_o ) and not isvalid )
|
{
|
instance := SalesDemandBase::GetInstanceText( this.Product_MP(),
|
this.SalesSegment_MP(),
|
this.StartDate(),
|
this.EndDate(),
|
this.GetTypeName() );
|
|
feedback_o.Add( SanityCheckMessage::GetFormattedMessage( instance, Translations::MP_Forecast_OverPlanned() ) );
|
sanitycheckfeedback_o.Add( SanityCheckCategoryLevel::GetSanityCheckCategoryDataWarning() );
|
}
|
|
return isvalid;
|
*]
|
}
|