Quintiq file version 2.0
#parent: #root
Method New () derived id:Method_DialogCreateEditCustomerOrder_New
{
  #keys: '[136682.1.803157119]'
  BaseType => //DialogCreateEditSalesDemand/Method_DialogCreateEditSalesDemand_New
  Body:
  [*
    // New Sales demand
    owner := select( DataHolderProduct.Data(), Elements, e, not e.IsSystem() );
    data := owner.SalesDemand( relshadow, CustomerOrder, ID := "", IsFirmed := true, IsEligibleForNetting := true ); // Temporary set ID to empty, will be set during OnOK, IsFirmed and IsEligibleForNetting default should be true
    
    DataHolderDialogData.Data( &data );
    Form.SetDefaultValue();
    ApplicationMacroPlanner.ShowFormModal( Form );
  *]
}
