<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Transaction References with Customer Placeholder]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8266&amp;type=atom" />
	<updated>2019-08-23T08:33:16Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8266</id>
		<entry>
			<title type="html"><![CDATA[Re: Transaction References with Customer Placeholder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35784#p35784" />
			<content type="html"><![CDATA[<p>@itronics: must this now be added into the core?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-08-23T08:33:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35784#p35784</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Transaction References with Customer Placeholder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35783#p35783" />
			<content type="html"><![CDATA[<p>@itronics: must this now be added into the core?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-08-23T08:32:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35783#p35783</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Transaction References with Customer Placeholder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35778#p35778" />
			<content type="html"><![CDATA[<p>on Line # 479 I modified the code as below<br /></p><div class="codebox"><pre><code>$ref = $Refs-&gt;get_next($_SESSION[&#039;Items&#039;]-&gt;trans_type, null, array(&#039;date&#039; =&gt; Today(), &#039;customer&#039;=&gt;$_SESSION[&#039;Items&#039;]-&gt;customer_id));</code></pre></div><p>On Line # 673 modified the code as below<br /></p><div class="codebox"><pre><code>$doc-&gt;reference = $Refs-&gt;get_next($doc-&gt;trans_type, null, array(&#039;date&#039; =&gt; Today(), &#039;customer&#039;=&gt;$doc-&gt;customer_id));</code></pre></div><p>On <strong>sales/includes/ui/sales_order_ui.inc</strong> Line # 273 I added the code as below</p><div class="codebox"><pre><code>$_POST[&#039;ref&#039;] =  $Refs-&gt;get_next($doc-&gt;trans_type, null, array(&#039;date&#039; =&gt; Today(), &#039;customer&#039;=&gt;get_post(&#039;customer_id&#039;));</code></pre></div><p>I got the desired result.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-08-23T02:12:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35778#p35778</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Transaction References with Customer Placeholder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35436#p35436" />
			<content type="html"><![CDATA[<p>The said line 479 is:<br /></p><div class="codebox"><pre><code>        $ref = $Refs-&gt;get_next($_SESSION[&#039;Items&#039;]-&gt;trans_type, null, array(&#039;date&#039; =&gt; Today()));</code></pre></div><p>Where in it should it be added?</p><p>Any generic way to have this feature without manual intervention?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2019-07-12T15:50:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35436#p35436</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Transaction References with Customer Placeholder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35431#p35431" />
			<content type="html"><![CDATA[<p>If you want test&nbsp; it, you have to add &#039;custom&#039;=&gt;$customer_id&nbsp; in parameters array of $Refs-&gt;get_next() wherever applicable, e.g. in <strong>sales/sales_order_entry.php:479</strong><br />J.</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2019-07-10T15:46:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35431#p35431</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Transaction References with Customer Placeholder]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=35425#p35425" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>$refline_placeholders = array(
    &#039;MM&#039; =&gt; &#039;date&#039;,
    &#039;YY&#039; =&gt; &#039;date&#039;,
    &#039;YYYY&#039; =&gt; &#039;date&#039;,
    &#039;FF&#039; =&gt; &#039;date&#039;, // fiscal year
    &#039;FFFF&#039; =&gt; &#039;date&#039;,
    &#039;UU&#039; =&gt; &#039;user&#039;,
     &#039;P&#039; =&gt; &#039;pos&#039;,
//     FIXME:  for placeholders below all the code should work, but as the ref length is variable,
//       length specification in placeholder format should be implemented.
    &#039;C&#039; =&gt; &#039;customer&#039;,
    &#039;B&#039; =&gt; &#039;branch&#039;,
    &#039;S&#039; =&gt; &#039;supplier&#039;,
    &#039;L&#039; =&gt; &#039;location&#039;
);</code></pre></div><p>I uncommented the last four placeholders. should <strong>{C}</strong> shall bring the Customer&#039;s ShortCode in Reference. It is bringing 0. Any idea?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2019-07-10T06:43:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=35425#p35425</id>
		</entry>
</feed>
