[FIX] Proper account summary
This commit is contained in:
parent
de302a03dc
commit
48a4edad5b
@ -301,6 +301,7 @@ class Transaction extends Base {
|
|||||||
LEFT JOIN accounts AS a
|
LEFT JOIN accounts AS a
|
||||||
ON t.account_id = a.id
|
ON t.account_id = a.id
|
||||||
WHERE t.archived = 0 AND a.ap_threshold > 0
|
WHERE t.archived = 0 AND a.ap_threshold > 0
|
||||||
|
GROUP BY t.account_id
|
||||||
HAVING confirmed > a.ap_threshold
|
HAVING confirmed > a.ap_threshold
|
||||||
");
|
");
|
||||||
if ($this->checkStmt($stmt) && $stmt->execute() && $result = $stmt->get_result())
|
if ($this->checkStmt($stmt) && $stmt->execute() && $result = $stmt->get_result())
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user