protected virtual void SOOrderType_RowSelecting(PXCache sender, PXRowSelectingEventArgs e)
        {
            if (e.Row == null)
            {
                return;
            }

            SOOrderType ordertype = (SOOrderType)e.Row;

            SOAutomationHelper.SetSupportsApproval(this, ordertype);
        }
 protected virtual System.Collections.IEnumerable GetRecords()
 {
     foreach (PXResult <SOOrderType, SOOrderTypeOperation> it in PXSelectJoin <SOOrderType, InnerJoin <SOOrderTypeOperation, On <SOOrderTypeOperation.orderType, Equal <SOOrderType.orderType>, And <SOOrderTypeOperation.operation, Equal <SOOrderType.defaultOperation> > > > > .Select(this._Graph))
     {
         var ot  = (SOOrderType)it;
         var oto = (SOOrderTypeOperation)it;
         SOAutomationHelper.SetSupportsApproval(this._Graph, ot);
         if (ot.SupportsApproval != true)
         {
             continue;
         }
         if (!PXAccess.FeatureInstalled <FeaturesSet.warehouse>() && oto.INDocType == INTranType.Transfer)
         {
             continue;
         }
         yield return(it);
     }
 }