From 01964f7ff92129cab69512a227e7c469ad59b6ea Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Fri, 19 Feb 2016 19:37:52 +0100 Subject: [PATCH] payments: show failed payout users in the table this admin view is made to show owed balances... --- web/yaamp/modules/site/payments_results.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/yaamp/modules/site/payments_results.php b/web/yaamp/modules/site/payments_results.php index 69f00a5..9e993bb 100644 --- a/web/yaamp/modules/site/payments_results.php +++ b/web/yaamp/modules/site/payments_results.php @@ -1,6 +1,10 @@ UNIX_TIMESTAMP()-60*60) order by last_login desc limit 50"); +// PS: account last_login is not related to user logins... its the last backend payment loop, todo: rename it.. + +$list = getdbolist('db_accounts', "coinid!=6 AND (". + "balance > 0 OR last_login > (UNIX_TIMESTAMP()-60*60) OR id IN (SELECT DISTINCT account_id FROM payouts WHERE tx IS NULL)". + ") ORDER BY last_login DESC limit 50"); JavascriptFile("/yaamp/ui/js/jquery.metadata.js"); JavascriptFile("/yaamp/ui/js/jquery.tablesorter.widgets.js");