Show all player leagues in 1 view, reduce nav Dropdown meny item count

This commit is contained in:
Torsten 2017-11-09 11:53:20 +01:00
parent 02329d5c21
commit c337916a3b
9 changed files with 93 additions and 47 deletions

View file

@ -402,6 +402,9 @@ class Tipp extends Model
$totalDayWinPayout = 0;
$round_count=0;
error_log("Round ids: ".implode(",",$round_ids));
foreach ($round_ids as $round_id) {
$round_count += 1;
$totalDayWinPayout += $payouts["tagessieg"];
@ -474,6 +477,9 @@ class Tipp extends Model
}
$quotas=Quota::getQuotas($currentSeason->id);
error_log("Round-Count=".$round_count);
if ($round_count==$quotas["Runden"]) {
// Ranking Payout ausschütten
$payout_groups =array();
@ -505,7 +511,7 @@ class Tipp extends Model
$single_payout = $rankPayout / $groupsize;
foreach($payout_groups[$current_rank] as $user_id) {
$key = $round_count."_".$user_id;
$key = $lastRoundId."_".$user_id;
$roundtipps[$key]["ranking_payout"] += $single_payout;
}
$current_rank=0;