From 48a4edad5b2105e7a4130d0e2ccbf42a156c039a Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Mon, 30 Dec 2013 12:02:38 +0100 Subject: [PATCH] [FIX] Proper account summary --- public/include/classes/transaction.class.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public/include/classes/transaction.class.php b/public/include/classes/transaction.class.php index 565497b1..16e1947a 100644 --- a/public/include/classes/transaction.class.php +++ b/public/include/classes/transaction.class.php @@ -301,6 +301,7 @@ class Transaction extends Base { LEFT JOIN accounts AS a ON t.account_id = a.id WHERE t.archived = 0 AND a.ap_threshold > 0 + GROUP BY t.account_id HAVING confirmed > a.ap_threshold "); if ($this->checkStmt($stmt) && $stmt->execute() && $result = $stmt->get_result())