Topic: Tax Report rep702 order by date
Dears,
How can I get the tax report to sort entries by date instead of Transaction type?
I tried to look around but being a novice I couldn't make it out.
Any ideas?
It's much more fun, when you can discuss your problems with others...
You are not logged in. Please login or register.
FrontAccounting forum → Reporting → Tax Report rep702 order by date
Dears,
How can I get the tax report to sort entries by date instead of Transaction type?
I tried to look around but being a novice I couldn't make it out.
Any ideas?
@@ -67,7 +67,7 @@ function getTaxTransactions($from, $to)
$sql .= " AND taxrec.tran_date >= '$fromdate'
AND taxrec.tran_date <= '$todate'
GROUP BY taxrec.id
- ORDER BY taxrec.trans_type, taxrec.tran_date, taxrec.trans_no, taxrec.ex_rate";
+ ORDER BY taxrec.tran_date, taxrec.trans_type, taxrec.trans_no, taxrec.ex_rate";
return db_query($sql,"No transactions were returned");
Thanks Braath,
I actually tried this before and I got this error in the log:
[10-Feb-2020 13:48:11 Europe/Berlin] <b>DATABASE ERROR :</b> No transactions were returned<br>error code : 1054<br>error message : Unknown column 'taxrec.trans_date' in 'order clause'<br>sql that failed was : SELECT tt.name as taxname, taxrec.*, taxrec.amount*ex_rate AS amount,
I could not understand why the ORDER BY gives such an error if one changes the order.
Sorry Braath
Your change works perfectly.
I was too quick to answer. Should have paid more attention.
Thanks
@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.
FrontAccounting forum → Reporting → Tax Report rep702 order by date
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 4 official extensions. Copyright © 2003–2009 PunBB.