title: Copy User Fields from CRM Quote to Sales Order
body: <p>I am trying to copy some user fields from the CRM Quote to the Sales Order. The CRM Quote uses a different object than the Sales Quote and there doesn't appear to be a  way to relate it back. I tried overriding the Create Sales Order to add a handler, but this didn't seem to work Any help would be appreciated. Here is the code I tried:</p>
  
  <pre><code>public class OpportunityMaint_Extension : PXGraphExtension&lt;OpportunityMaint&gt;
  {
      public delegate IEnumerable CreateSalesOrderDelegate(PXAdapter adapter);
  
      [PXOverride]
      public virtual IEnumerable CreateSalesOrder(PXAdapter adapter, CreateSalesOrderDelegate baseMethod)
      {
          Base.RowInserting.AddHandler&lt;SOLine&gt;((sender, e) =&gt;
          {
              SOLine orderLine = e.Row as SOLine;
              if (orderLine == null) return;
  
              SOLineExt orderLineExt = orderLine.GetExtension&lt;SOLineExt&gt;();
  
              var product = Base.Products.Current;
              CROpportunityProductsExt productExt = product.GetExtension&lt;CROpportunityProductsExt&gt;();
  
              orderLineExt.UsrHasAnticipatedDiscount = productExt.UsrHasAnticipatedDiscount;
              orderLineExt.UsrAnticipatedDiscountPct = productExt.UsrAnticipatedDiscountPct;
              orderLineExt.UsrAnticipatedDiscountAmt = productExt.UsrAnticipatedDiscountAmt;
              orderLineExt.UsrAnticipatedUnitPrice = productExt.UsrAnticipatedUnitPrice;
              orderLineExt.UsrTotalAnticipatedDiscountAmt = productExt.UsrTotalAnticipatedDiscountAmt;
          });
  
          return baseMethod(adapter);
      }
  }
  </code></pre>
  
  <p>Thanks!</p>