Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method InitializeComponents ( 
 | 
  Boolean isbatchedit 
 | 
) id:Method_DialogCreateEditActualPISPIP_InitializeComponents 
 | 
{ 
 | 
  #keys: '[139394.1.1044898106]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Hide components 
 | 
     
 | 
    dsDate.Enabled( not isbatchedit,  Translations::MP_Designer_DisableSelectorForBatchEdit( 'Date' ) ); 
 | 
    dsManufacturedDate.Enabled( not isbatchedit, Translations::MP_Designer_DisableSelectorForBatchEdit( 'Manufactured date' ) ); 
 | 
    if( not DataHolderDialogData.Data().ProductInStockingPoint_MP().Product_MP().HasShelfLifeOrMaturation() ) 
 | 
    { 
 | 
      dsManufacturedDate.Enabled( false, '' ); 
 | 
    } 
 | 
     
 | 
    cbBatchEditQuantity.Visible( isbatchedit ); 
 | 
    cbBatchEditDescription.Visible( isbatchedit ); 
 | 
     
 | 
     
 | 
    // Enable / disable components 
 | 
    efQuantity.Enabled( not isbatchedit, '' ); 
 | 
    efDescription.Enabled( not isbatchedit, '' ); 
 | 
  *] 
 | 
} 
 |