Quintiq file version 2.0 
 | 
#parent: #root 
 | 
StaticMethod GetHasValidDestinationQuantity ( 
 | 
  NewSupply sourcenewsupply, 
 | 
  NewSupply destinationnewsupply, 
 | 
  Real destinationquantity, 
 | 
  output String feedback_o 
 | 
) remote as Boolean 
 | 
{ 
 | 
  Description: 'Verify if the destination quantity is valid' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // huat heng Sep-17-2013 (created) 
 | 
    feedback_o := ''; 
 | 
    sourcequantity := sourcenewsupply.Quantity(); 
 | 
     
 | 
    if( destinationquantity < 0 ) 
 | 
    { 
 | 
      feedback_o := Translations::MP_PeriodTask_MP_ValidateInput_IsNegativeQuantity(); 
 | 
    } 
 | 
    else if( sourcenewsupply <> destinationnewsupply 
 | 
             and destinationquantity > sourcequantity ) 
 | 
    { 
 | 
      feedback_o := Translations::MP_PeriodTask_ViolateHasValidDestinationQuantity( sourcequantity, destinationquantity ); 
 | 
    } 
 | 
     
 | 
    return feedback_o = ''; 
 | 
  *] 
 | 
} 
 |