Fixed manufacturer error on printable user page

Manufacturer is not required for accessories, so need to account for that
This commit is contained in:
snipe 2017-12-26 16:49:01 -08:00
parent 71ba1af647
commit 8864f81402

View file

@ -128,7 +128,7 @@
<tr> <tr>
<td>{{ $acounter }}</td> <td>{{ $acounter }}</td>
<td>{{ $accessory->manufacturer->name }} {{ $accessory->name }} {{ $accessory->model_number }}</td> <td>{{ ($accessory->manufacturer) ? $accessory->manufacturer->name : '' }} {{ $accessory->name }} {{ $accessory->model_number }}</td>
<td>{{ $accessory->category->name }}</td> <td>{{ $accessory->category->name }}</td>
<td>{{ $accessory->assetlog->first()->created_at }}</td> <td>{{ $accessory->assetlog->first()->created_at }}</td>
</tr> </tr>
@ -163,7 +163,7 @@
<tr> <tr>
<td>{{ $ccounter }}</td> <td>{{ $ccounter }}</td>
<td>{{ $consumable->manufacturer->name }} {{ $consumable->name }} {{ $consumable->model_number }}</td> <td>{{ ($consumable->manufacturer) ? $consumable->manufacturer->name : '' }} {{ $consumable->name }} {{ $consumable->model_number }}</td>
<td>{{ $consumable->category->name }}</td> <td>{{ $consumable->category->name }}</td>
<td>{{ $consumable->assetlog->first()->created_at }}</td> <td>{{ $consumable->assetlog->first()->created_at }}</td>
</tr> </tr>