<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Sorting of Expense Accounts Alphabetically]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10658&amp;type=atom" />
	<updated>2025-05-03T23:30:02Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10658</id>
		<entry>
			<title type="html"><![CDATA[Re: Sorting of Expense Accounts Alphabetically]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43637#p43637" />
			<content type="html"><![CDATA[<p>That will be in <strong>reporting/rep707.php</strong>.</p><p>The relevant code is:<br /></p><div class="codebox"><pre><code>function print_profit_and_loss_statement()</code></pre></div><p>The loop is in line 288 within which the elements will need to be alphabetically arranged:<br /></p><div class="codebox"><pre><code>while ($accounttype=db_fetch($typeresult))</code></pre></div><p>Line 273:<br /></p><div class="codebox"><pre><code>$classresult = get_account_classes(false, 0);</code></pre></div><p>too could be checked out.</p><p>The lines 40-41 in <strong>function display_type</strong><br /></p><div class="codebox"><pre><code>    $result = get_gl_accounts(null, null, $type);    
    while ($account=db_fetch($result))</code></pre></div><p>may need to be sorted for your needs.</p><p>A modified version of the rep707.php could be made into an extension to serve your needs. Anyone game?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2025-05-03T23:30:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43637#p43637</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sorting of Expense Accounts Alphabetically]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43636#p43636" />
			<content type="html"><![CDATA[<p>In the Profit and Loss report under General Ledger. </p><p>It is normally sorted according to the account number instead of the account name. Account name order in the Expenses just makes it easier to find information to complete the company&#039;s Tax return.</p><p>It is still grouped by the Classes/Groups/Account, depending on your setup.</p>]]></content>
			<author>
				<name><![CDATA[seahawk]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=544</uri>
			</author>
			<updated>2025-05-03T16:47:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43636#p43636</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Sorting of Expense Accounts Alphabetically]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43634#p43634" />
			<content type="html"><![CDATA[<p>Where? In the report? Which report?<br />Will this sort affect groups&#039; child entries?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2025-05-02T21:55:03Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43634#p43634</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Sorting of Expense Accounts Alphabetically]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43630#p43630" />
			<content type="html"><![CDATA[<p>Is there a way that one can sort the Expense Accounts Alphabetically instead of Account Numbers?</p>]]></content>
			<author>
				<name><![CDATA[seahawk]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=544</uri>
			</author>
			<updated>2025-05-01T19:45:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43630#p43630</id>
		</entry>
</feed>
