<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — CustName being posted in ref field in crm_persons table]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=5229&amp;type=atom" />
	<updated>2014-10-06T22:00:24Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=5229</id>
		<entry>
			<title type="html"><![CDATA[CustName being posted in ref field in crm_persons table]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=21077#p21077" />
			<content type="html"><![CDATA[<p>To match the order of Nickname (ref), First Name (name), Last Name (name2) in the function that inserts and updates these fields in the crm_persons table, we need it to match the arguments order being passed on during it&#039;s invocations.</p><p>The <strong>function add_crm_persons()</strong> is defined in <strong>includes/db/crm_contacts_db.inc</strong>:<br /></p><div class="codebox"><pre><code>function add_crm_person($ref, $name, $name2,.....</code></pre></div><p>but invoked in line 120 of <strong>sales/manage/customers.php</strong> by:<br /></p><div class="codebox"><pre><code>add_crm_person($_POST[&#039;CustName&#039;], $_POST[&#039;cust_ref&#039;], &#039;&#039;, ......</code></pre></div>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2014-10-06T22:00:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=21077#p21077</id>
		</entry>
</feed>
