Merge pull request #10941 from Godmartinz/gh8856_signature_not_showing_in_print_all

[Fix] changes the query for the accept signature on print blade
This commit is contained in:
snipe 2022-05-05 13:32:37 -07:00 committed by GitHub
commit 5370c2ca42
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -67,7 +67,7 @@
<th style="width: 20%;">{{ trans('general.name') }}</th>
<th style="width: 10%;">{{ trans('general.category') }}</th>
<th style="width: 20%;">{{ trans('general.asset_model') }}</th>
<th style="width: 20%;">{{ trans('general.asset_serial') }}</th>
<th style="width: 20%;">{{ trans('admin/hardware/form.serial') }}</th>
<th style="width: 10%;">{{ trans('general.checked_out') }}</th>
<th data-formatter="imageFormatter" style="width: 20%;">{{ trans('general.signature') }}</th>
</tr>
@ -86,7 +86,7 @@
{{ $asset->last_checkout }}</td>
<td>
@if ($asset->assetlog->first())
<img style="width:auto;height:100px;" src="{{ asset('/') }}display-sig/{{ $asset->assetlog->first()->accept_signature }}">
<img style="width:auto;height:100px;" src="{{ asset('/') }}display-sig/{{ $asset->assetlog->firstWhere('action_type', 'accepted')->accept_signature}}">
@endif
</td>
</tr>