Quintiq file version 2.0
#parent: CustomDrawComponent/CustomDrawDataLayerNode
Response OnDrop (
  structured[StockingPoint_MP] source,
  UnitNode droptarget
) id:Response_CustomDrawComponent_CustomDrawDataLayerNode_OnDrop_251
{
  #keys: '[110880.3.887878280]'
  Body:
  [*
    // Link stocking points to unit node
    feedback := '';
    if ( droptarget.Unit().CanLinkToStockingPoints( feedback, source, true ) )
    {
      droptarget.Unit().LinkToStockingPoints( source, true );
    }
    else
    {
      droptarget.Unit().RemoveAsInputToStockingPoints( source );
    }
  *]
  DefinitionID: 'Responsedef_CustomDrawDataLayer_OnDrop'
  UserRequiresReadWrite: true
}
