<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Tax type still showing when inactive]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7081</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7081&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Tax type still showing when inactive.]]></description>
		<lastBuildDate>Sun, 29 Oct 2017 13:13:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29294#p29294</link>
			<description><![CDATA[<p>The fix is a little long. @poncho1234&#039;s fix to acquire the <em>inactive</em> field&#039;s value directly in the sql may have sufficed as the combo box generation routine merges the <strong>$show_inactive</strong> variable appropriately like all other tables based combos. Functions like <strong>item_type_inactive($id)</strong> if replicated for each and every <strong>inactive</strong> field in FA&#039;s multitude of tables would become a veritable maze. Any overarching issues that were encountered in fixing it this way would be a lesson on coding similar pages for the community at large.</p><p>@itronics: Thanks for the quick fix.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 29 Oct 2017 13:13:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29294#p29294</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29292#p29292</link>
			<description><![CDATA[<p>Yes, this was a bug in Item editor, <a href="https://sourceforge.net/p/frontaccounting/git/ci/e6c89f21df1c1d6742a7e335e6e0fc2c958a7a29/">just fixed</a> in repo. Thanks for reporting.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Sun, 29 Oct 2017 11:04:48 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29292#p29292</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29290#p29290</link>
			<description><![CDATA[<p>Janusz is looking at this issue.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sun, 29 Oct 2017 09:22:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29290#p29290</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29286#p29286</link>
			<description><![CDATA[<p>@apmuthu<br />wow.. you still use Firebug ??&nbsp; i liked it much better than anything but i guess its dead now.</p>]]></description>
			<author><![CDATA[null@example.com (Alaa)]]></author>
			<pubDate>Sat, 28 Oct 2017 23:26:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29286#p29286</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29284#p29284</link>
			<description><![CDATA[<p>Thank you apmuthu... looks good</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 28 Oct 2017 23:12:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29284#p29284</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29282#p29282</link>
			<description><![CDATA[<p>On further investigation, your fix is in order. See attachment. The inactive <strong>item_tax_type</strong> is seen with a strikethrough (CSS styled).</p><p>@joe: can commit it.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 28 Oct 2017 22:30:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29282#p29282</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29281#p29281</link>
			<description><![CDATA[<p>Looks like there must be atleast 1 entry in the &quot;item_tax_types_list()&quot; - there is no filter to remove the inactive ones. This is the &quot;item_tax_types_list&quot; and not merely the&quot; tax_types_list&quot;.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 28 Oct 2017 22:10:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29281#p29281</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29280#p29280</link>
			<description><![CDATA[<p>Hi apmuthu, tax_types_list() (line 1171) and tax_groups_list( (line 1205) are not selected any whereelse, except in taxes and tax groups.</p><p>What&#039;s the point of making tax types inactive if you can still see them when you select an item?</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 28 Oct 2017 21:44:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29280#p29280</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29279#p29279</link>
			<description><![CDATA[<p>I still see the inactive tax type.<br />The <strong>inactive</strong> field is missing in the SELECT field list in the functions <strong>tax_types_list()</strong> (line 1171) and <strong>tax_groups_list(</strong> (line 1205) too apart from your above <strong>item_tax_types_list()</strong> (line 1237) and <strong>templates_list()</strong> (line 1369) and <strong>workorders_list()</strong> (line 1399).</p><p>For any of the combo boxes, is it possible to add new elements on the fly?</p><p>@joe: is this fix necessary?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 28 Oct 2017 20:57:57 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29279#p29279</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29278#p29278</link>
			<description><![CDATA[<p>Ok so that worked: The inactive tax type now cannot be seen:-</p><div class="codebox"><pre><code>File: \includes\ui\ui_lists.inc
1237:     
 - $sql =&quot;SELECT id, name FROM &quot;.TB_PREF.&quot;item_tax_types&quot;;
 + $sql =&quot;SELECT id, name, inactive FROM &quot;.TB_PREF.&quot;item_tax_types&quot;;</code></pre></div><br /><p>Questions:-</p><p>Is this a bug?<br />If not what is the intended functionality?</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 28 Oct 2017 18:41:32 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29278#p29278</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29277#p29277</link>
			<description><![CDATA[<p>So to investigate, the inactive flag is being posted to the server, so all tax, tax type, tax group are ok, and unlikely to have same bug in all three..</p><div class="codebox"><pre><code>So File: \inventory\manage\items.php
394:     item_tax_types_list_row(_(&quot;Item Tax Type:&quot;), &#039;tax_type_id&#039;, null);</code></pre></div><p>calls to </p><p>via function item_tax_types_list_cells </p><div class="codebox"><pre><code>File: \includes\ui\ui_lists.inc

1235: function item_tax_types_list($name, $selected_id=null)
1236: {
1237:     $sql =&quot;SELECT id, name FROM &quot;.TB_PREF.&quot;item_tax_types&quot;;
1238:     return combo_input($name, $selected_id, $sql, &#039;id&#039;, &#039;name&#039;, array(&#039;order&#039; =&gt; &#039;id&#039;) );
1239: }
1240: </code></pre></div><p>I cannot see anything with inactive in here, comparing to other similar functions in ui_lists.inc; should line # 1237 read something like:-</p><div class="codebox"><pre><code>$sql =&quot;SELECT id, name, inactive FROM &quot;.TB_PREF.&quot;item_tax_types&quot;;</code></pre></div><p>I will try it</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 28 Oct 2017 18:31:48 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29277#p29277</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29276#p29276</link>
			<description><![CDATA[<p>I even tried on a different browser</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 28 Oct 2017 18:04:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29276#p29276</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29275#p29275</link>
			<description><![CDATA[<p>I did that, still can see the new tax type.</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 28 Oct 2017 18:02:02 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29275#p29275</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29274#p29274</link>
			<description><![CDATA[<p>SESSION may have not been refreshed. Logout and close all instances of the browser and then try again.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sat, 28 Oct 2017 17:55:13 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29274#p29274</guid>
		</item>
		<item>
			<title><![CDATA[Tax type still showing when inactive]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=29272#p29272</link>
			<description><![CDATA[<p>Hi,<br />Clean install with &#039;Standard new company American COA (4 digit) <br />No other entries made.</p><p>Created a tax, tax group and tax type</p><p>In create new item, tax type: new tax type can be selected from drop-down list, did not create item.</p><p>Then inactivate the new tax, tax group and tax type.</p><p>Return to create items and the new tax type is still available and can be selected and used?</p><p>Checked the database and inactive is 1 for the three taxes.</p><p>Server cache cleared<br />Browser cache cleared</p><p>Not sure if I&#039;m doing something wrong or this is a bug?</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 28 Oct 2017 13:46:01 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=29272#p29272</guid>
		</item>
	</channel>
</rss>
