<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Tax type still showing when inactive]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7081&amp;type=atom" />
	<updated>2017-10-29T13:13:27Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7081</id>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29294#p29294" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-29T13:13:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29294#p29294</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29292#p29292" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2017-10-29T11:04:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29292#p29292</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29290#p29290" />
			<content type="html"><![CDATA[<p>Janusz is looking at this issue.</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:22:40Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29290#p29290</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29286#p29286" />
			<content type="html"><![CDATA[<p>@apmuthu<br />wow.. you still use Firebug ??&nbsp; i liked it much better than anything but i guess its dead now.</p>]]></content>
			<author>
				<name><![CDATA[Alaa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20274</uri>
			</author>
			<updated>2017-10-28T23:26:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29286#p29286</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29284#p29284" />
			<content type="html"><![CDATA[<p>Thank you apmuthu... looks good</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2017-10-28T23:12:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29284#p29284</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29282#p29282" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-28T22:30:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29282#p29282</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29281#p29281" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-28T22:10:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29281#p29281</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29280#p29280" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2017-10-28T21:44:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29280#p29280</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29279#p29279" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-28T20:57:57Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29279#p29279</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29278#p29278" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2017-10-28T18:41:32Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29278#p29278</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29277#p29277" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2017-10-28T18:31:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29277#p29277</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29276#p29276" />
			<content type="html"><![CDATA[<p>I even tried on a different browser</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2017-10-28T18:04:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29276#p29276</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29275#p29275" />
			<content type="html"><![CDATA[<p>I did that, still can see the new tax type.</p>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2017-10-28T18:02:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29275#p29275</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29274#p29274" />
			<content type="html"><![CDATA[<p>SESSION may have not been refreshed. Logout and close all instances of the browser and then try again.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-10-28T17:55:13Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29274#p29274</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Tax type still showing when inactive]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=29272#p29272" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[poncho1234]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19944</uri>
			</author>
			<updated>2017-10-28T13:46:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=29272#p29272</id>
		</entry>
</feed>
