<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Add Items on the Fly. Behavior Changed in FA24]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7069&amp;type=atom" />
	<updated>2017-10-29T09:54:12Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7069</id>
		<entry>
			<title type="html"><![CDATA[Re: Add Items on the Fly. Behavior Changed in FA24]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29291#p29291" />
			<content type="html"><![CDATA[<p>This has been <a href="https://github.com/FrontAccountingERP/FA/commit/ae3b2bb8305be80dfb1e4e89bd10a0395c7db5ba">committed</a> to Repo (the Tax Type inactive <a href="https://frontaccounting.com/punbb/viewtopic.php?pid=29292#p29292">under investigation</a>).</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-10-29T09:54:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29291#p29291</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add Items on the Fly. Behavior Changed in FA24]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29289#p29289" />
			<content type="html"><![CDATA[<p>The <strong>sales/manage/customer_branches.php</strong> already has <strong>&nbsp; &nbsp; hidden(&#039;popup&#039;, @$_REQUEST[&#039;popup&#039;]);</strong> in it&#039;s line 226 and hence <em>F3 - Select Branch</em> works as expected in Direct Invoice like forms.</p><p>Line 303 of <strong>sales/manage/customers.php</strong>:<br /></p><div class="codebox"><pre><code>    div_start(&#039;controls&#039;);</code></pre></div><p>should now be:<br /></p><div class="codebox"><pre><code>    div_start(&#039;controls&#039;);
    if (@$_REQUEST[&#039;popup&#039;]) hidden(&#039;popup&#039;, 1);</code></pre></div><p>Similarly for <strong>purchasing/manage/suppliers.php</strong> at line 169 as well.</p><p>The Supplier deletion notification is obtained by making line 281 in <strong>purchasing/manage/suppliers.php</strong>:<br /></p><div class="codebox"><pre><code>        $Ajax-&gt;activate(&#039;_page_body&#039;);</code></pre></div><p>to be<br /></p><div class="codebox"><pre><code>        $Ajax-&gt;activate(&#039;_page_body&#039;);
        display_notification(&quot;#&quot; . $_POST[&#039;supplier_id&#039;] . &quot; &quot; . _(&quot;Supplier has been deleted.&quot;));</code></pre></div><p>@joe: Tested. Can commit.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-29T08:03:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29289#p29289</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add Items on the Fly. Behavior Changed in FA24]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29288#p29288" />
			<content type="html"><![CDATA[<p>And while digging to this problem I detect the other that after delete of a supplier there is no notification shown.</p>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2017-10-29T01:41:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29288#p29288</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add Items on the Fly. Behavior Changed in FA24]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29287#p29287" />
			<content type="html"><![CDATA[<p>Both suppliers.php and customers.php also need to be fixed too.</p>]]></content>
			<author>
				<name><![CDATA[notrinos]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=36772</uri>
			</author>
			<updated>2017-10-29T01:36:18Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29287#p29287</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add Items on the Fly. Behavior Changed in FA24]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29254#p29254" />
			<content type="html"><![CDATA[<p>This problem does not arise in FA 2.3.x.</p><p>The equivalent in FA 2.3 is placed just before the <strong>end_form();</strong> statement like:<br /></p><div class="codebox"><pre><code>hidden(&#039;popup&#039;, @$_REQUEST[&#039;popup&#039;]);</code></pre></div><p>In FA 2.4 we have Fixed Assets too as Items and the possibility of @... returning a NULL / false instead of a 0 in current strict syntax of later PHP versions prompted the solution for <a href="https://github.com/FrontAccountingERP/FA/commit/3a57a3833e32f69d78200ddcd0d43bfa1fa9fde8">this commit</a>.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-27T09:42:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29254#p29254</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add Items on the Fly. Behavior Changed in FA24]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29228#p29228" />
			<content type="html"><![CDATA[<p><s>Ok, willdo later.</s> <a href="https://github.com/FrontAccountingERP/FA/commit/3a57a3833e32f69d78200ddcd0d43bfa1fa9fde8">Fixed</a>.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2017-10-26T14:31:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29228#p29228</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add Items on the Fly. Behavior Changed in FA24]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29227#p29227" />
			<content type="html"><![CDATA[<p>My fix works.</p><p>@joe: can commit it. Diff attached.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-26T13:49:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29227#p29227</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Add Items on the Fly. Behavior Changed in FA24]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29216#p29216" />
			<content type="html"><![CDATA[<p>@joe: fix?</p><p>Lines 532 to 547 in <strong>inventory/manage/items.php</strong>:<br /></p><div class="codebox"><pre><code>    div_start(&#039;controls&#039;);
    if (!isset($_POST[&#039;NewStockID&#039;]) || $new_item) 
    {
        submit_center(&#039;addupdate&#039;, _(&quot;Insert New Item&quot;), true, &#039;&#039;, &#039;default&#039;);
    } 
    else 
    {
        if (@$_REQUEST[&#039;popup&#039;]) hidden(&#039;popup&#039;, 1);
        submit_center_first(&#039;addupdate&#039;, _(&quot;Update Item&quot;), &#039;&#039;, 
            $page_nested ? true : &#039;default&#039;);
        submit_return(&#039;select&#039;, get_post(&#039;stock_id&#039;), 
            _(&quot;Select this items and return to document entry.&quot;));
        submit(&#039;clone&#039;, _(&quot;Clone This Item&quot;), true, &#039;&#039;, true);
        submit(&#039;delete&#039;, _(&quot;Delete This Item&quot;), true, &#039;&#039;, true);
        submit_center_last(&#039;cancel&#039;, _(&quot;Cancel&quot;), _(&quot;Cancel Edition&quot;), &#039;cancel&#039;);
    }</code></pre></div><p>We need to let the resultant page after insertion know that it came from a popup. Hence move the line:<br /></p><div class="codebox"><pre><code>        if (@$_REQUEST[&#039;popup&#039;]) hidden(&#039;popup&#039;, 1);</code></pre></div><p>to be the second line in the snippet above.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-26T11:09:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29216#p29216</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Add Items on the Fly. Behavior Changed in FA24]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29198#p29198" />
			<content type="html"><![CDATA[<p>Hello, There is a change in behaviour while adding Items on the Fly while creating invoices in FA24.</p><p>When we press F4 the dialog opens. When a New Item is created and then selected to be added as a Line Item in Invoice, the Select Button doesn&#039;t appear at the bottom. This is unlike in FA23.</p><p>Please do the whole process to reproduce the behavior. Because when you will press F4, you will see the select button, then if you select any other item you will see the select button, but when you create new item and then select it the Select button will disappear.</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2017-10-25T11:25:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29198#p29198</id>
		</entry>
</feed>
