payments: show failed payout users in the table

this admin view is made to show owed balances...
This commit is contained in:
Tanguy Pruvot 2016-02-19 19:37:52 +01:00
parent 75969e2d0b
commit 01964f7ff9

View file

@ -1,6 +1,10 @@
<?php <?php
$list = getdbolist('db_accounts', "coinid!=6 and (balance or last_login>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.metadata.js");
JavascriptFile("/yaamp/ui/js/jquery.tablesorter.widgets.js"); JavascriptFile("/yaamp/ui/js/jquery.tablesorter.widgets.js");