...
This commit is contained in:
parent
ed0c445bfa
commit
30f6157606
15 changed files with 248 additions and 169 deletions
|
|
@ -180,9 +180,10 @@ class User extends Authenticatable
|
|||
|
||||
// aktiv = hat die Saison bezahlt.
|
||||
public static function getActives($seasonId=-1) {
|
||||
|
||||
$currentSeason=Season::getCurrent();
|
||||
if ($seasonId != -1) { $currentSeason = Season::where('id','=',$seasonId); }
|
||||
if (!$currentSeason) return array();
|
||||
|
||||
$users = User::all();
|
||||
$payments = Payment::where('season_id','=',$currentSeason->id)->get();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue