<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Tax Report rep702 order by date]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8686&amp;type=atom" />
	<updated>2020-02-10T19:14:27Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=8686</id>
		<entry>
			<title type="html"><![CDATA[Re: Tax Report rep702 order by date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36986#p36986" />
			<content type="html"><![CDATA[<p>@joe: This (date wise) should be the way it is by default. Alternatively, a report request flag for this mod can be in the core.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2020-02-10T19:14:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36986#p36986</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax Report rep702 order by date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36985#p36985" />
			<content type="html"><![CDATA[<p>Sorry Braath</p><p>Your change works perfectly.</p><p>I was too quick to answer. Should have paid more attention.</p><p>Thanks</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2020-02-10T13:10:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36985#p36985</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax Report rep702 order by date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36984#p36984" />
			<content type="html"><![CDATA[<p>Thanks Braath,</p><p>I actually tried this before and I got this error in the log:</p><p>[10-Feb-2020 13:48:11 Europe/Berlin] &lt;b&gt;DATABASE ERROR :&lt;/b&gt; No transactions were returned&lt;br&gt;error code : 1054&lt;br&gt;error message : Unknown column &#039;taxrec.trans_date&#039; in &#039;order clause&#039;&lt;br&gt;sql that failed was : SELECT tt.name as taxname, taxrec.*, taxrec.amount*ex_rate AS amount,</p><p>I could not understand why the ORDER BY gives such an error if one changes the order.</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2020-02-10T12:52:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36984#p36984</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Tax Report rep702 order by date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36983#p36983" />
			<content type="html"><![CDATA[<div class="codebox"><pre><code>@@ -67,7 +67,7 @@ function getTaxTransactions($from, $to)
         $sql .= &quot; AND taxrec.tran_date &gt;= &#039;$fromdate&#039;
                        AND taxrec.tran_date &lt;= &#039;$todate&#039;
         GROUP BY taxrec.id
-               ORDER BY taxrec.trans_type, taxrec.tran_date, taxrec.trans_no, taxrec.ex_rate&quot;;
+               ORDER BY taxrec.tran_date, taxrec.trans_type, taxrec.trans_no, taxrec.ex_rate&quot;;
 
     return db_query($sql,&quot;No transactions were returned&quot;);</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Braath Waate]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41493</uri>
			</author>
			<updated>2020-02-10T11:03:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36983#p36983</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Tax Report rep702 order by date]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=36982#p36982" />
			<content type="html"><![CDATA[<p>Dears,</p><p>How can I get the tax report to sort entries by date instead of Transaction type?<br />I tried to look around but being a novice I couldn&#039;t make it out.</p><p>Any ideas?</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2020-02-10T07:13:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=36982#p36982</id>
		</entry>
</feed>
