<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Adding Item Category Filter to the core]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7602&amp;type=atom" />
	<updated>2018-07-03T15:59:17Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7602</id>
		<entry>
			<title type="html"><![CDATA[Re: Adding Item Category Filter to the core]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32072#p32072" />
			<content type="html"><![CDATA[<p>Good to know.&nbsp; The setting can be made in the $opts array (fifth argument):</p><div class="codebox"><pre><code>stock_items_list(&#039;stock_id&#039;, null, false, false, array(&#039;where&#039;=&gt;&#039;s.category_id=&#039;.$filter_cat));</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2018-07-03T15:59:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32072#p32072</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Adding Item Category Filter to the core]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32070#p32070" />
			<content type="html"><![CDATA[<p>As stated above proposed changes in list helpers functions are not necessary, so the patch will not be integrated.&nbsp; But, yes, using get_post() is encouraged in such a context.<br />J.</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2018-07-03T14:49:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32070#p32070</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Adding Item Category Filter to the core]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32065#p32065" />
			<content type="html"><![CDATA[<p>This is good to use when the customers has more categories and each one has more items.</p><p>But the feature has to be used in reports page mainly.&nbsp; </p><p>Rep306 - Inventory Purchasing Report&nbsp; &nbsp; has the items category, when the user select a category, we can shortlist the items in the list on the next drop down.&nbsp; So its good to use this feature. </p><p>And i have one more suggestion, if possible we can use the &quot;get_post()&quot; within the list function like this.</p><div class="codebox"><pre><code>if (get_post(&#039;category&#039;) )
        $sql .= &quot; AND s.category_id=&#039;&quot; . get_post(&#039;category&#039;) . &quot;&#039;&quot;;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2018-07-03T14:24:06Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32065#p32065</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Adding Item Category Filter to the core]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32064#p32064" />
			<content type="html"><![CDATA[<p>The patch contains only changes in stock_items list helpers, which are not necessary. You can have the same effect on the current FA version passing required filter in &#039;where&#039; options, e.g.:<br /></p><div class="codebox"><pre><code>stock_items_list(&#039;stock_id&#039;, null, false, array(&#039;where&#039;=&gt;&#039;s.categpry_id=&#039;.$filter_cat));</code></pre></div><p>Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2018-07-03T14:05:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32064#p32064</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Adding Item Category Filter to the core]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32060#p32060" />
			<content type="html"><![CDATA[<p>Yes this is Necessary. We shall add this in the Core</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2018-07-03T08:11:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32060#p32060</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Adding Item Category Filter to the core]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=32055#p32055" />
			<content type="html"><![CDATA[<p>@braathwaate has provided an <a href="https://github.com/braathwaate/frontac24/commit/162068e1e00ea1b7f80ed6f29fab44a7dd83c2b2">item category filter mod</a> that can be included in the core.</p><p>The attachment has the diff file and the file set for the current core version.</p><p>@joe: want to include it into the core?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-07-03T04:12:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=32055#p32055</id>
		</entry>
</feed>
