<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Account Code to be define as int]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=7547</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=7547&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Account Code to be define as int.]]></description>
		<lastBuildDate>Sat, 09 Jun 2018 18:04:42 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Account Code to be define as int]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31830#p31830</link>
			<description><![CDATA[<p>@poncho1234</p><p>Stack Over Flow <a href="http://php.net/manual/en/function.natsort.php">natsort()</a> solution worked like a charm. Thanks A Lot.</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Sat, 09 Jun 2018 18:04:42 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31830#p31830</guid>
		</item>
		<item>
			<title><![CDATA[Re: Account Code to be define as int]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31829#p31829</link>
			<description><![CDATA[<p>May not solve your problem as used for ordering, but could help:-</p><p><a href="https://stackoverflow.com/questions/1625166/mysql-order-varchar-field-as-integer?utm_medium=organic&amp;utm_source=google_rich_qa&amp;utm_campaign=google_rich_qa">stack-overflow mysql order varchar field as integer </a> not sure how you could use this to select next, but maybe you can?</p><p>More here @ <a href="https://dba.stackexchange.com/questions/21156/sort-a-varchar-field-numerically-in-mysql?utm_medium=organic&amp;utm_source=google_rich_qa&amp;utm_campaign=google_rich_qa"> DBA SE </a> pad the front with zeros or use CAST</p><p>Another one <a href="https://www.copterlabs.com/natural-sorting-in-mysql/"> here </a> uses a different method to sort by length 1st... the article also mentions a php function <a href="http://php.net/manual/en/function.natsort.php">natsort() </a> which may be worth investigating</p>]]></description>
			<author><![CDATA[null@example.com (poncho1234)]]></author>
			<pubDate>Sat, 09 Jun 2018 12:50:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31829#p31829</guid>
		</item>
		<item>
			<title><![CDATA[Re: Account Code to be define as int]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31824#p31824</link>
			<description><![CDATA[<p>Thanks @Joe,</p><p>Yes I understand, but Actually I needed a customization to automatically pick the Next Available Account Code for the Given Account Type. It worked Fine till Code 2899 but when it reaches 28100 it is not picking the next value 28101 because the order sequence of Varchar says 28100 is smaller than 2899.</p><p>Converting it to INT&nbsp; is working fine but I fear it may cause anomalies. Any Ideas?</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Sat, 09 Jun 2018 07:45:00 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31824#p31824</guid>
		</item>
		<item>
			<title><![CDATA[Re: Account Code to be define as int]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31817#p31817</link>
			<description><![CDATA[<p>Hello @boxygen</p><p>Yes it will. There are many tables where there are references to the account number, so please do not change this. Why do you want to change from varchar to int. The reason for using varchar is how the account numbers are sorted and there might be a wish in some countries to have them alphanumeric.<br />In most serious accounting systems this variable is varchar.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Fri, 08 Jun 2018 22:32:15 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31817#p31817</guid>
		</item>
		<item>
			<title><![CDATA[Account Code to be define as int]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=31814#p31814</link>
			<description><![CDATA[<p>In chart_master table if I change the data type of account_code field from Varchar to int, will it cause any anomaly in relationships with other tables?</p><p>I have kept all Account Codes as Integer</p>]]></description>
			<author><![CDATA[null@example.com (boxygen)]]></author>
			<pubDate>Fri, 08 Jun 2018 18:30:44 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=31814#p31814</guid>
		</item>
	</channel>
</rss>
