Separate failed prelim and noshow flags
This commit is contained in:
parent
727d4d7048
commit
250a3856ba
|
|
@ -4,8 +4,8 @@ namespace App\Http\Controllers\Tabulation;
|
|||
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\Models\BonusScore;
|
||||
use App\Models\CalculatedScore;
|
||||
use App\Models\Entry;
|
||||
use App\Models\EntryTotalScore;
|
||||
use App\Models\ScoreSheet;
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
|
|
@ -81,9 +81,9 @@ class EntryFlagController extends Controller
|
|||
}
|
||||
DB::table('score_sheets')->where('entry_id', $entry->id)->delete();
|
||||
|
||||
|
||||
ScoreSheet::where('entry_id', $entry->id)->delete();
|
||||
BonusScore::where('entry_id', $entry->id)->delete();
|
||||
EntryTotalScore::where('entry_id', $entry->id)->delete();
|
||||
if (request()->input('noshow-type') == 'failprelim') {
|
||||
$msg = 'Failed prelim has been entered for '.$entry->audition->name.' #'.$entry->draw_number.' (ID: '.$entry->id.').';
|
||||
$entry->addFlag('failed_prelim');
|
||||
|
|
|
|||
Loading…
Reference in New Issue