Quintiq file version 2.0
#parent: #root
Response OnDrop (
  structured[Unit] information,
  Unit target
) id:Response_ListUnitTree_OnDrop_6
{
  #keys: '[11660.0.973606801]'
  Body:
  [*
    // Drop unit on another unit as child
    Unit::Move( information, target, MacroPlan );
  *]
  DefinitionID: 'Responsedef_GUIComponent_OnDrop'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return forall( information, Elements, child, true, Unit::ValidateInput( feedback,
                                                                            sanitycheckfeedback,
                                                                            MacroPlan,
                                                                            child.ID(),
                                                                            child.Name(),
                                                                            child,
                                                                            target,
                                                                            false,
                                                                            child.StartDate(),
                                                                            false,
                                                                            child.EndDate(),
                                                                            child.CapacityType(),
                                                                            child.UnitOfMeasure_MP(),
                                                                            child.Currency_MP(),
                                                                            child.MinimumQuantity(),
                                                                            child.HasMaximumQuantity(),
                                                                            child.MaximumQuantity(),
                                                                            child.LotSize(),
                                                                            child.HasCapacitySmoothing(),
                                                                            child.IsSmoothCapacityOverAllPeriods(),
                                                                            child.UserCapacitySmoothingLength(),
                                                                            child.CapacitySmoothingPercentageDelta(),
                                                                            false )
     );
  *]
  UserRequiresReadWrite: true
}
