Quintiq file version 2.0
#parent: #root
Method EnableBatchEdit () derived id:Method_DialogCreateEditCustomerOrder_EnableBatchEdit
{
  #keys: '[136682.1.803157508]'
  BaseType => //DialogCreateEditSalesDemand/Method_DialogCreateEditSalesDemand_EnableBatchEdit
  Body:
  [*
    //Set visibility of batch edit checkbox
    
    isbatchedit := DataHolderSalesDemands.Data().Size() > 1;
    
    if ( isbatchedit and DropDownListSalesSegment.ActionLinkText() = '' )
    {
        
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( DropDownListSalesSegment );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( DropDownListProduct )
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( DropDownListStockingPoint );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( DropDownListCurrency );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( DateSelectorStart );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( DateSelectorEnd );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( EditFieldPrice );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( EditFieldQuantityUom );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( DropDownListUnitOfMeasurement );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( DropDownListPriority );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( EditFieldDemandUncertaintyPercentage );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( CheckBoxIsExcludedFromFulfillmentKPI );
      
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( EditFieldCustomerID );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( EditFieldCustomerName );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( EditFieldOrderID );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( EditFieldOrderLineID );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( CheckboxIsForNetting );
      ApplicationMacroPlanner.ChangeActionLinkTextEditRevert( CheckboxIsFirmed );
      
    }  
    
    Form.EnableDisableComponent( isbatchedit, DataHolderDialogData.Data().Product_MP() );
  *]
}
