title: Trying to add a related to list between Leads and Quotes in vTiger
body: <p>I am trying to add a related to list between the Lead and Quote module in vTiger.</p>
  
  <p>Ultimately, I would like the user to be able to select a quote to be attached to a lead (and possibly vice versa).</p>
  
  <p>As far as I can tell, I have to add the field to the Lead.php file in the Lead module, however I'm doing what I can tell as far as documentation (which is incredibly sparse) and I'm seeing no new fields in the Lead module.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>var $additional_column_fields = Array('smcreatorid', 'smownerid', 'contactid','potentialid' ,'crmid', 'quoteid');
  
  // This is the list of vtiger_fields that are in the lists.
  var $list_fields = Array(
      'Last Name'=&gt;Array('leaddetails'=&gt;'lastname'),
      'First Name'=&gt;Array('leaddetails'=&gt;'firstname'),
      'Company'=&gt;Array('leaddetails'=&gt;'company'),
      'Phone'=&gt;Array('leadaddress'=&gt;'phone'),
      'Website'=&gt;Array('leadsubdetails'=&gt;'website'),
      'Email'=&gt;Array('leaddetails'=&gt;'email'),
      'Assigned To'=&gt;Array('crmentity'=&gt;'smownerid'),
      'Quote'=&gt;Array('quotes'=&gt;'subject')
  );
  
  var $list_fields_name = Array(
      'Last Name'=&gt;'lastname',
      'First Name'=&gt;'firstname',
      'Company'=&gt;'company',
      'Phone'=&gt;'phone',
      'Website'=&gt;'website',
      'Email'=&gt;'email',
      'Assigned To'=&gt;'assigned_user_id',
       'Subject'=&gt;'subject',
  );
  </code></pre>
  
  <p>Notice, I've added quote specific information.</p>
  
  <p>Ideally I just want to have a link between the two of them - much like you would link an opportunity and a contact or something along those lines.</p>