Fixed [ch15130] - update the seeder to clear requested assets table

This commit is contained in:
snipe 2020-09-08 18:29:02 -07:00
parent 251ef82741
commit 82e0b1ffd8
No known key found for this signature in database
GPG key ID: 10BFFDA3ED34B5AC
2 changed files with 3 additions and 1 deletions

View file

@ -49,6 +49,8 @@ class DatabaseSeeder extends Seeder
DB::table('imports')->truncate();
DB::table('asset_maintenances')->truncate();
DB::table('requested_assets')->truncate();
}
}

View file

@ -41,7 +41,7 @@ Accept assets {{ $user->present()->fullName() }}
<tbody>
@foreach ($acceptances as $acceptance)
<tr>
<td>{{ $acceptance->checkoutable->present()->name }}</td>
<td>{{ ($acceptance->checkoutable) ? $acceptance->checkoutable->present()->name : '' }}</td>
<td><a href="{{ route('account.accept.item', $acceptance) }}" class="btn btn-default btn-sm">Accept/Decline</a></td>
</tr>
@endforeach