Quintiq file version 2.0
|
#parent: #root
|
Method GetHasValidInput (
|
output Strings feedback_o,
|
output Strings sanitycheckfeedback_o
|
) declarative remote as Boolean
|
{
|
Description: 'Checks if inventory specification has valid input'
|
TextBody:
|
[*
|
// Checks if inventory specification has valid input
|
feedback := '';
|
sanitycheckfeedback := '';
|
|
// Validate input of inventory specification
|
// pass along information regarding the product and levels
|
isvalid := InventorySpecification::ValidateInput( feedback,
|
sanitycheckfeedback,
|
this.Product_MP(),
|
this.StockingPoint_MP(),
|
this.Start(),
|
this.HasMinLevelInDays(),
|
this.MinLevelInDays(),
|
this.MinLevelInQuantity(),
|
this.HasMaxLevel(),
|
this.HasMaxLevelInDays(),
|
this.MaxLevelInDays(),
|
this.MaxLevelInQuantity(),
|
this,
|
false );
|
|
// Add feedback text if input is invalid
|
if( not isnull( feedback_o ) and not isvalid )
|
{
|
feedback_o.Add( feedback );
|
sanitycheckfeedback_o.Add( sanitycheckfeedback );
|
}
|
|
return isvalid;
|
*]
|
}
|