<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Manually Enter Invoice Number]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8351</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8351&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Manually Enter Invoice Number.]]></description>
		<lastBuildDate>Tue, 26 Nov 2019 06:52:32 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Manually Enter Invoice Number]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36492#p36492</link>
			<description><![CDATA[<p>Yes you are right, @apmuthu.</p><p>Bug 4988 has been fixed and committed to 2.4.7 stable repo. The fixed file can be downloaded <a href="https://sourceforge.net/p/frontaccounting/git/ci/master/tree/sales/includes/cart_class.inc">here</a>.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Tue, 26 Nov 2019 06:52:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36492#p36492</guid>
		</item>
		<item>
			<title><![CDATA[Re: Manually Enter Invoice Number]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36491#p36491</link>
			<description><![CDATA[<p>This looks okay with the sysprefs variable on a per company basis changeable at will anytime without affecting past and future transactions. Consider the situation where we wish to jump the sequence and move forward a few numbers and later come back to fill in the missing ones. Check if this will mitigate it.</p><p>Logic change - replace the line:<br /></p><div class="codebox"><pre><code>if (!$increase || !is_new_reference($this-&gt;reference, $this-&gt;trans_type)) </code></pre></div><p>with:<br /></p><div class="codebox"><pre><code>else</code></pre></div><p>since the <strong>!is_new_reference($this-&gt;reference, $this-&gt;trans_type)</strong> is already there in the outer <strong>if</strong> construct.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 26 Nov 2019 03:59:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36491#p36491</guid>
		</item>
		<item>
			<title><![CDATA[Re: Manually Enter Invoice Number]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=36485#p36485</link>
			<description><![CDATA[<p>@apmuthu,</p><p>This is related to bug number 4988 reported on Mantis.<br />Do you think that this will solve the issue:<br /></p><div class="codebox"><pre><code>         if ($this-&gt;reference != &#039;auto&#039; &amp;&amp; $this-&gt;trans_no == 0 &amp;&amp; !is_new_reference($this-&gt;reference, $this-&gt;trans_type))
        {
            $increase = !empty($SysPrefs-&gt;prefs[&#039;ref_no_auto_increase&#039;]);
            if ($increase)
                $this-&gt;reference = $Refs-&gt;get_next($this-&gt;trans_type, null, array(&#039;date&#039; =&gt; Today()));
            if (!$increase || !is_new_reference($this-&gt;reference, $this-&gt;trans_type))    
            {
                commit_transaction();
                return -1;
            }
        }</code></pre></div><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 25 Nov 2019 21:44:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=36485#p36485</guid>
		</item>
		<item>
			<title><![CDATA[Re: Manually Enter Invoice Number]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35728#p35728</link>
			<description><![CDATA[<p>The <strong>sys_prefs</strong> table by default has <strong>ref_no_auto_increase</strong> disabled but it still works in AutoInc mode.</p><p>The error is in the absence of an &quot;else&quot; for line 294 in <strong>sales/includes/cart_class.inc</strong> and it&#039;s positioning after a blank check. The lines 287 to 301 are reproduced here:<br /></p><div class="codebox"><pre><code>    function write($policy=0) {
        
        global $SysPrefs, $Refs;
        
        begin_transaction(); // prevents partial database changes in case of direct delivery/invoice
        if ($this-&gt;reference != &#039;auto&#039; &amp;&amp; $this-&gt;trans_no == 0 &amp;&amp; !is_new_reference($this-&gt;reference, $this-&gt;trans_type))
        {
            if (!empty($SysPrefs-&gt;prefs[&#039;ref_no_auto_increase&#039;]))
                $this-&gt;reference = $Refs-&gt;get_next($this-&gt;trans_type, null, array(&#039;date&#039; =&gt; Today()));
            if (!is_new_reference($this-&gt;reference, $this-&gt;trans_type))    
            {
                commit_transaction();
                return -1;
            }    
        }
...
...</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 18 Aug 2019 13:36:34 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35728#p35728</guid>
		</item>
		<item>
			<title><![CDATA[Re: Manually Enter Invoice Number]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35723#p35723</link>
			<description><![CDATA[<p>Hi,</p><p>Regarding the Auto Increase of Document References in Setup -&gt; Company Setup </p><p>This function is always active even if one chooses to disable it. Auto increase is always on.</p><p>I think there is a bug somewhere. (FA2.4.7)</p>]]></description>
			<author><![CDATA[null@example.com (rafat)]]></author>
			<pubDate>Sun, 18 Aug 2019 09:33:28 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35723#p35723</guid>
		</item>
		<item>
			<title><![CDATA[Re: Manually Enter Invoice Number]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35721#p35721</link>
			<description><![CDATA[<p>Keep changing the next invoice number manually in <em>Setup =&gt; Transaction References</em> and then let it <strong>auto-populate</strong> this manually provided value in the invoice you enter. The responsibility of maintaining non duplicate Invoice Number will then vest with you as the system will simply reject duplicates only after entering the invoice.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 18 Aug 2019 06:24:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35721#p35721</guid>
		</item>
		<item>
			<title><![CDATA[Manually Enter Invoice Number]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=35711#p35711</link>
			<description><![CDATA[<p>We are doing Cargo Pick Up Service. We give pre-numbered Booklet Invoices to Customer.</p><p>When I enter in FA Software I need to give same Booklet Invoices number on Software Invoice Number. Is it Possible? I don&#039;t need auto generating Invoice number. Just enter manual number for each Invoice.</p><p>Can you please guide me how to ?</p>]]></description>
			<author><![CDATA[null@example.com (niyazofficial@gmail.com)]]></author>
			<pubDate>Sat, 17 Aug 2019 17:41:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=35711#p35711</guid>
		</item>
	</channel>
</rss>
