added credits

This commit is contained in:
Tóth Richárd
2019-08-05 17:59:01 +02:00
parent 1f7b0a06d0
commit d760306d97
6 changed files with 275 additions and 172 deletions

View File

@@ -296,6 +296,10 @@ if (isset($_POST['action'])) {
$tmp_user->update_balance();
//ha pozitiv az egyenleg, akkor lenullázhatjuk a hitelalkalmait (???)
if (($tmp_user->get_uk_balance() + $_POST['mod_sum']) > 0) {
$sql->update_table('user_kid', array('uk_credit' => '0'), array('uk_id' => $_POST['mod_user_kid_uk_id']));
}
header("Location: /admin/money_deposit");
break;
case 'money_deposit_update':