projects
/
fa-stable.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
69400c4
)
Additional Transaction Date presence check
author
Joe Hunt
<joe.hunt.consulting@gmail.com>
Fri, 4 Oct 2019 07:48:59 +0000
(09:48 +0200)
committer
Joe Hunt
<joe.hunt.consulting@gmail.com>
Fri, 4 Oct 2019 07:48:59 +0000
(09:48 +0200)
admin/db/transactions_db.inc
patch
|
blob
|
history
diff --git
a/admin/db/transactions_db.inc
b/admin/db/transactions_db.inc
index f7d2d295ec6ff7177c44799ac7c63f56c3dd4c31..466ded81ea54a9015839d9d86b03dce89a402696 100644
(file)
--- a/
admin/db/transactions_db.inc
+++ b/
admin/db/transactions_db.inc
@@
-31,7
+31,8
@@
function get_sql_for_view_transactions($filtertype, $from, $to, &$trans_ref)
$sql .= " ,t.$trans_ref as ref ";
else
$sql .= ", r.reference as ref";
- $sql .= ",t.$trans_date as trans_date";
+ if ($trans_date)
+ $sql .= ",t.$trans_date as trans_date";
if ($type_name)
$sql .= ", t.$type_name as type";
$sql .= " FROM $table_name t LEFT JOIN ".TB_PREF."voided v ON"