<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — customer search]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10173&amp;type=atom" />
	<updated>2024-05-21T21:12:31Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10173</id>
		<entry>
			<title type="html"><![CDATA[Re: customer search]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43121#p43121" />
			<content type="html"><![CDATA[<p>I saw this review as well. I would like to propose a change to the customer search to be able to search phone numbers and emails. I often get texts from clients and I am unclear as to whom i&#039;m speaking with, or when scheduling delivery note, I forget who it was. I added all crm fields in the search but didnt include them in the table for fear of clutter. The crm table view does have all those things and looks ok to me.&nbsp; </p><p>change db function get_customers_search in &#039;/sales/includes/db/customers_db.inc&#039; to...<br /></p><div class="codebox"><pre><code>function get_customers_search($customer)
{
    global $SysPrefs;

    if (isset($SysPrefs-&gt;max_rows_in_search))
        $limit = $SysPrefs-&gt;max_rows_in_search;
    else
        $limit = 10;

  $sql = &quot;SELECT d.debtor_no, d.name, d.debtor_ref, d.address, d.tax_id, 
    p.phone, p.phone2, p.fax, p.email 
    FROM &quot;.TB_PREF.&quot;crm_persons p, &quot;.TB_PREF.&quot;crm_contacts c,  
    &quot;.TB_PREF.&quot;debtors_master d
    WHERE p.id = c.person_id AND c.entity_id = d.debtor_no AND 
          c.type = &#039;customer&#039; AND
    (      d.name LIKE &quot; . db_escape(&quot;%&quot; . $customer. &quot;%&quot;) . &quot; OR 
     d.debtor_ref LIKE &quot; . db_escape(&quot;%&quot; . $customer. &quot;%&quot;) . &quot; OR 
          d.address LIKE &quot; . db_escape(&quot;%&quot; . $customer. &quot;%&quot;) . &quot; OR 
           d.tax_id LIKE &quot; . db_escape(&quot;%&quot; . $customer. &quot;%&quot;).&quot; OR
            p.phone LIKE &quot; . db_escape(&quot;%&quot; . $customer. &quot;%&quot;) . &quot; OR 
           p.phone2 LIKE &quot; . db_escape(&quot;%&quot; . $customer. &quot;%&quot;) . &quot; OR 
              p.fax LIKE &quot; . db_escape(&quot;%&quot; . $customer. &quot;%&quot;) . &quot; OR 
            p.email LIKE &quot; . db_escape(&quot;%&quot; . $customer. &quot;%&quot;).&quot;)
      ORDER BY name LIMIT 0,&quot;.(int)($limit);

    return db_query($sql, &quot;Failed in retreiving customer list.&quot;);
}</code></pre></div><p>add fields to table header and cells in &#039;/sales/inquiry/customers_list.php&#039; to have at least phone and email<br />Header array $th<br /></p><div class="codebox"><pre><code>$th = array(&quot;&quot;, _(&quot;Customer&quot;), _(&quot;Short Name&quot;), _(&quot;Address&quot;), _(&quot;Tax ID&quot;), _(&quot;Phone&quot;), _(&quot;Email&quot;));</code></pre></div><p>Cell contents add email and phone<br /></p><div class="codebox"><pre><code>      label_cell($myrow[&quot;name&quot;]);
      label_cell($myrow[&quot;debtor_ref&quot;]);
      label_cell($myrow[&quot;address&quot;]);
      label_cell($myrow[&quot;tax_id&quot;]);
      label_cell($myrow[&quot;phone&quot;]);
      label_cell($myrow[&quot;email&quot;]);</code></pre></div><br /><p>@joe and @ apmuthu<br />?</p>]]></content>
			<author>
				<name><![CDATA[trafficpest]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=42061</uri>
			</author>
			<updated>2024-05-21T21:12:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43121#p43121</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: customer search]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42441#p42441" />
			<content type="html"><![CDATA[<p>On the setup tab for company setup/ there is a tick box for Search Customers. Switch that on and see if that is what you are looking for.</p><p>Just tested it and if you select the search function direct invoice with company address it will display that.</p>]]></content>
			<author>
				<name><![CDATA[seahawk]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=544</uri>
			</author>
			<updated>2023-07-19T12:24:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42441#p42441</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[customer search]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42018#p42018" />
			<content type="html"><![CDATA[<p>Hi.&nbsp; I read a review which favored FrontAccounting, and I really want to participate (I&#039;m a developer).&nbsp; One of the things that the review indicated is not currently included in FrontAccounting is this: a user cannot search for customers by address, name or phone number.&nbsp; Perhaps this is an old review - and this functionality DOES exist?&nbsp; &nbsp;If not: has this modification been sized, yet?&nbsp; &nbsp;Thank you.</p>]]></content>
			<author>
				<name><![CDATA[garymarbach]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=47015</uri>
			</author>
			<updated>2023-02-01T23:03:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42018#p42018</id>
		</entry>
</feed>
