<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Transaction References with Customer Placeholder]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8266</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8266&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Transaction References with Customer Placeholder.]]></description>
		<lastBuildDate>Fri, 23 Aug 2019 08:33:16 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Transaction References with Customer Placeholder]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35784#p35784</link>
			<description><![CDATA[<p>@itronics: must this now be added into the core?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 23 Aug 2019 08:33:16 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35784#p35784</guid>
		</item>
		<item>
			<title><![CDATA[Re: Transaction References with Customer Placeholder]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35783#p35783</link>
			<description><![CDATA[<p>@itronics: must this now be added into the core?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 23 Aug 2019 08:32:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35783#p35783</guid>
		</item>
		<item>
			<title><![CDATA[Re: Transaction References with Customer Placeholder]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35778#p35778</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Fri, 23 Aug 2019 02:12:16 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35778#p35778</guid>
		</item>
		<item>
			<title><![CDATA[Re: Transaction References with Customer Placeholder]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35436#p35436</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 12 Jul 2019 15:50:42 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35436#p35436</guid>
		</item>
		<item>
			<title><![CDATA[Re: Transaction References with Customer Placeholder]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35431#p35431</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Wed, 10 Jul 2019 15:46:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35431#p35431</guid>
		</item>
		<item>
			<title><![CDATA[Transaction References with Customer Placeholder]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35425#p35425</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Wed, 10 Jul 2019 06:43:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35425#p35425</guid>
		</item>
	</channel>
</rss>
