<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Reverse order of dropdown list from input box]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7206&amp;type=atom" />
	<updated>2018-02-13T14:04:58Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=7206</id>
		<entry>
			<title type="html"><![CDATA[Re: Reverse order of dropdown list from input box]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30802#p30802" />
			<content type="html"><![CDATA[<p>A non alphabetical first char being omitted before sorting....<br />Thanks - hope this helps someone.</p><p>There was no difference in FA 2.3.26 - wonder what made this necessary now.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-02-13T14:04:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30802#p30802</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reverse order of dropdown list from input box]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30801#p30801" />
			<content type="html"><![CDATA[<p>Hi apmuthu, I changed it to this<br />array(&#039;c.description&#039;,&#039;IF(stock_id RLIKE \&#039;^[a-z]\&#039;, 1, 2), stock_id&#039;)</p>]]></content>
			<author>
				<name><![CDATA[timelyfiasco]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20223</uri>
			</author>
			<updated>2018-02-13T04:16:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30801#p30801</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reverse order of dropdown list from input box]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30734#p30734" />
			<content type="html"><![CDATA[<p>The ORDER BY is implemented in the array_merge() array&#039;s element of the first argument and remains the same in both FA 2.3.x and 2.4.x as:<br /></p><div class="codebox"><pre><code>&#039;order&#039; =&gt; array(&#039;c.description&#039;,&#039;stock_id&#039;)</code></pre></div><p>What did you change it to, in order to make it the way you wanted?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2018-02-06T08:51:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30734#p30734</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reverse order of dropdown list from input box]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30733#p30733" />
			<content type="html"><![CDATA[<p>Ok. nevermind. I didnt look hard enough. It was just a few lines down the same file. Got it working.</p>]]></content>
			<author>
				<name><![CDATA[timelyfiasco]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20223</uri>
			</author>
			<updated>2018-02-06T06:12:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30733#p30733</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reverse order of dropdown list from input box]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30732#p30732" />
			<content type="html"><![CDATA[<p>As mentioned, the new version of FA sorts items in a different order. I realized it may have something to do with the new version of mysql or php. <br />The sql concerned is <br /></p><div class="codebox"><pre><code>SELECT stock_id, s.description, c.description, s.inactive, s.editable
            FROM 0_stock_master as s,0_stock_category as c 
            WHERE s.category_id=c.category_id   ORDER BY c.description,stock_id;</code></pre></div><p>which is found in <strong>include/ui/ui_lists.inc</strong>: <em>function stock_items_list()</em></p><p>I tested adding <strong>REGEXP &#039;^[a-z]&#039; DESC</strong>, an answer I found in stackechange, and it works. But I cant figure out where the ORDER BY is located. It is not in the ui_list.php. Can someone point it out for me?</p>]]></content>
			<author>
				<name><![CDATA[timelyfiasco]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20223</uri>
			</author>
			<updated>2018-02-06T04:41:09Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30732#p30732</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reverse order of dropdown list from input box]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30202#p30202" />
			<content type="html"><![CDATA[<p>Hi Apmuthu,</p><p>What I mean is the order of the list shown in the dropdown select box. I have search item ticked in the company page. <br />I tried to print screen the dropdown but it disappears. Is it even possible? </p><p>Here is an example:<br />If I type Gold bar, the results in the dropdown are as follows<br />Gold bar - Gold Bar 24k<br />123456789 - Gold Bar 24k<br />`Gold bar - Gold Bar 24k inner packaging<br />It is sorted as letters, numbers, then symbols. But in 2.4 symbols come first, then the rest.<br />I want to change it to the old one. What do I need to modify?</p>]]></content>
			<author>
				<name><![CDATA[timelyfiasco]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20223</uri>
			</author>
			<updated>2017-12-23T00:23:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30202#p30202</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reverse order of dropdown list from input box]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30162#p30162" />
			<content type="html"><![CDATA[<p>In the text box before the dropdown select box for Items, only the item code can be typed. The dropdown will show the item name only and will be prefixed with the item code only if the &quot;Show Item Codes&quot; checkbox is ticked in the Preferences menu. Where do you get/see &quot;symbols&quot;?</p><p>If however, in Setup =&gt; Company Setup, the Search Items checkbox is ticked, then the textbox besfore the Items dropdown can be searched by Item Name when by Ajax, the dropdown will get filtered.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-12-22T14:50:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30162#p30162</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reverse order of dropdown list from input box]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30152#p30152" />
			<content type="html"><![CDATA[<p>Hi Apmuthu, <br />When you type in the text box the item code in sales, purchasing, or item page, it shows a combo box with the item code and the description sorted by category then item code. I want to change the order back to the previous one where symbols come last.</p>]]></content>
			<author>
				<name><![CDATA[timelyfiasco]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20223</uri>
			</author>
			<updated>2017-12-22T07:49:34Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30152#p30152</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Reverse order of dropdown list from input box]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30136#p30136" />
			<content type="html"><![CDATA[<p>Which dropdown are you referring to and where?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2017-12-21T15:08:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30136#p30136</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Reverse order of dropdown list from input box]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=30131#p30131" />
			<content type="html"><![CDATA[<p>Hi, I needed to use 2.4 due to dependency issues. But I like the way the search function in 2.3 works and I want to overwrite it on v2.4. <br />In 2.3, symbols appear after the alphabets, after the numbers. But the order in v2.4 is symbols, numbers, letters. Can I easily modify this?</p>]]></content>
			<author>
				<name><![CDATA[timelyfiasco]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20223</uri>
			</author>
			<updated>2017-12-21T08:48:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=30131#p30131</id>
		</entry>
</feed>
