remove credit

This commit is contained in:
Tóth Richárd
2020-02-16 19:18:23 +01:00
parent 06db8798d0
commit 02b2350828
5 changed files with 3 additions and 118 deletions

View File

@@ -749,23 +749,8 @@ class user_kid extends user_parent {
//ha igen, túllepte-e PIROS
//ha nem, akkor SÁRGA
//ha nincs, akkor azonnal PIROS
if (!$this->get_uk_lease()) {
return false;
}
if ($this->get_uk_balance() < 0 || ($this->get_uk_balance() - $trainingPrice) < 0) {
if (!$has_credit) {
return 'restricted';
}
else {
if ($this->get_uk_credit() < $credit) {
return 'credit-warning';
}
else {
return 'credit-restricted';
}
}
return 'credit-warning';
}
return false;
}