Payout bugfix

This commit is contained in:
Torsten 2017-11-10 15:32:54 +01:00
parent 922db48c36
commit 622ecaf97c
8 changed files with 73 additions and 54 deletions

View file

@ -398,7 +398,7 @@ class Tipp extends Model
// Compute highest dayscore
// Addition: no dayscorewinner && round_completed: Payout goes to next round
$payouts = Quota::getPayouts($currentSeason->id);
$payouts = Quota::getPayouts();
$totalDayWinPayout = 0;
$round_count=0;
@ -476,11 +476,11 @@ class Tipp extends Model
}
}
$quotas=Quota::getQuotas($currentSeason->id);
$quotas=Quota::getQuotas();
error_log("Round-Count=".$round_count);
if ($round_count==$quotas["Runden"]) {
if ($round_count==Round::getCount()) {
// Ranking Payout ausschütten
$payout_groups =array();
$lastRoundId= array_values(array_slice($round_ids,-1))[0];