<?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 : The value is not incremented]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7608</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7608&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Transaction References : The value is not incremented.]]></description>
		<lastBuildDate>Sun, 22 Jul 2018 18:23:13 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Transaction References : The value is not incremented]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32272#p32272</link>
			<description><![CDATA[<p>I think members are not sure how to test it. Let me explain it. </p><p>Suppose if the Next Available Reference for Journal Entry is JE222 in Transaction References. Change it to JE220. Now if you will make the Journal Entry you will get the message &quot;Reference already in use&quot;.</p><p>Now place the above code in core and test now. You will see that the message will not appear and the system will itself increment the values and record the transaction with Reference JE222.</p><p>I hope now someone can test it and give feedback to @joe.</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Sun, 22 Jul 2018 18:23:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32272#p32272</guid>
		</item>
		<item>
			<title><![CDATA[Re: Transaction References : The value is not incremented]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32236#p32236</link>
			<description><![CDATA[<p>I am surprised. No one in FA Community facing the problem of reference increment <img src="https://frontaccounting.com/punbb/img/smilies/sad.png" width="15" height="15" alt="sad" /></p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Thu, 19 Jul 2018 19:34:03 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32236#p32236</guid>
		</item>
		<item>
			<title><![CDATA[Re: Transaction References : The value is not incremented]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32233#p32233</link>
			<description><![CDATA[<p>@haris.cowlas -&nbsp; we done the job .</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Thu, 19 Jul 2018 06:30:41 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32233#p32233</guid>
		</item>
		<item>
			<title><![CDATA[Re: Transaction References : The value is not incremented]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32230#p32230</link>
			<description><![CDATA[<p>Prefix logo with some variable that denotes these branches.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 19 Jul 2018 01:06:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32230#p32230</guid>
		</item>
		<item>
			<title><![CDATA[Re: Transaction References : The value is not incremented]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32228#p32228</link>
			<description><![CDATA[<p>Hi I create new company and within this company created 4 different branches in sub-directory the problem happened when these 4 companies have different logos, sales invoice formats and header, and footer.&nbsp; so how can i add up different header and footer in subdirectory of different companies.</p>]]></description>
			<author><![CDATA[null@example.com (haris.cowlas)]]></author>
			<pubDate>Tue, 17 Jul 2018 19:51:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32228#p32228</guid>
		</item>
		<item>
			<title><![CDATA[Re: Transaction References : The value is not incremented]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32226#p32226</link>
			<description><![CDATA[<p>If this test is positive we will implement it immediately.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 17 Jul 2018 13:45:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32226#p32226</guid>
		</item>
		<item>
			<title><![CDATA[Re: Transaction References : The value is not incremented]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32225#p32225</link>
			<description><![CDATA[<p>could anyone test this?</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Tue, 17 Jul 2018 11:48:36 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32225#p32225</guid>
		</item>
		<item>
			<title><![CDATA[Re: Transaction References : The value is not incremented]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32140#p32140</link>
			<description><![CDATA[<p>I have tried one solution. I request you to please analyze it critically</p><p>Modified the below function in <strong>includes/references.inc</strong> </p><p>at Line 228 </p><div class="codebox"><pre><code>function is_new_reference(&amp;$ref, $type, $trans_no=0) //modified by faisal
    {
        $old_ref = $ref;
        while ($this-&gt;_get($type,$trans_no,$ref))
        {
            $ref = $this-&gt;_increment($ref);
        }

        if ($old_ref!=$ref)
            $this-&gt;reflines-&gt;save_next($type,$ref);

        return !$this-&gt;_get($type, $trans_no, $ref);
    }</code></pre></div><p>At Line 428</p><div class="codebox"><pre><code>function is_new_reference(&amp;$ref, $type, $trans_no=0)//Modified by faisal
{
    global $Refs;

    $old_ref = $ref;
    while (!$Refs-&gt;is_new_reference($ref,$type,$trans_no))
    {
        $ref = $Refs-&gt;_increment($ref);
    }

    if ($old_ref!=$ref)
        $Refs-&gt;reflines-&gt;save_next($type,$ref);
    
    return $Refs-&gt;is_new_reference($ref, $type, $trans_no);
}</code></pre></div><p><strong>includes/data_checks.inc</strong> at Line 666</p><div class="codebox"><pre><code>function check_reference(&amp;$reference, $trans_type, $trans_no=0, $context=null, $line=null)</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Sun, 08 Jul 2018 04:32:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32140#p32140</guid>
		</item>
		<item>
			<title><![CDATA[Re: Transaction References : The value is not incremented]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32133#p32133</link>
			<description><![CDATA[<div class="quotebox"><blockquote><p>the code for it has been placed in the forum and possibly in the wiki adn the end user can make a choice.</p></blockquote></div><p>@apmuthu can you refer the wiki or post where this code is available for this solution.</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Sat, 07 Jul 2018 15:02:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32133#p32133</guid>
		</item>
		<item>
			<title><![CDATA[Re: Transaction References : The value is not incremented]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32125#p32125</link>
			<description><![CDATA[<p>Not displaying the reference number in such forms and then automatically generating it and populating the appropriate tables with it was discussed but that detracted from the freedom to make any non standard transaction reference by the end user and hence given up.</p><p>This happens when two or more transactions of the same type are being created and submitted (by different users or the same user from different browser tabs/windows) either simultaneously or one after the other after all had opened the entry form for creation.</p><p>When each instance opens an entry form for record creation, the current accepted dispensation makes the next available reference number as the default value in the form. This will be the same in all such form instances across users / browser instances as long as the last record for the transaction type reference has not changed. When the first one submits the record it is taken without any error. When the second one is submitted, it is&nbsp; bearing the old &quot;next reference&quot; still and hence is rejected as it had been allotted to the one which was submitted first. Whilst it is possible to allot the real next reference that obtains at the time of submission, it was thought to be best presented to teh end user for choice of reference number instead - it may be implemented in private FA dispensations by allotted the next reference directly though and the code for it has been placed in the forum and possibly in the wiki adn the end user can make a choice.</p><p>The best way forward to have made a <strong>sys_prefs</strong> flag for prompting the enduser for choice of new reference or automatically take on the next available one. Although this affects a plethora of forms, it can be implemented directly in the add method of the relevant class definition.</p><p>@joe: If taken into the core with the appropriate default, it will save a few heart stops.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 07 Jul 2018 04:35:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32125#p32125</guid>
		</item>
		<item>
			<title><![CDATA[Transaction References : The value is not incremented]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=32120#p32120</link>
			<description><![CDATA[<p>This topic has been discussed in various posts&nbsp; but now I want to discuss a different scope. </p><p>Any Transaction form picks the value of next reference from Transaction References table and Upon new record creation it sets the next reference in Transaction References table. </p><p>This process is very natural but sometimes, not always but rarely the value doesn&#039;t increment in Transaction References. The User see the message &quot;The reference is already in use &quot; . Then the user has to manually increment the value in Transaction References. </p><p>I could not find the reason why the increment stucks but it is not always like this. </p><p>What could be the fix for this problem?</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Fri, 06 Jul 2018 18:51:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=32120#p32120</guid>
		</item>
	</channel>
</rss>
