Add message in the acceptance assets view to indicate when the user can\'t accept nor deny the asset

This commit is contained in:
Ivan Nieto Vivanco 2023-08-14 20:51:04 -06:00
parent 053d3fc9ed
commit d365565b6d
2 changed files with 5 additions and 1 deletions

View file

@ -453,6 +453,7 @@ return [
'item_notes' => ':item Notes',
'item_name_var' => ':item Name',
'error_user_company' => 'User and Asset companies missmatch',
'error_user_company_accpept_view' => 'User and Asset companies doesn\'t match so you can\'t accept nor deny it, please check with your manager',
'importer' => [
'checked_out_to_fullname' => 'Checked Out to: Full Name',
'checked_out_to_first_name' => 'Checked Out to: First Name',

View file

@ -44,8 +44,11 @@
@if ($acceptance->checkoutable)
<td>{{ ($acceptance->checkoutable) ? $acceptance->checkoutable->present()->name : '' }}</td>
<td><a href="{{ route('account.accept.item', $acceptance) }}" class="btn btn-default btn-sm">{{ trans('general.accept_decline') }}</a></td>
@else
<td> ----- </td>
<td> {{ trans('general.error_user_company_accpept_view') }} </td>
@endif
</tr>
@endif
@endforeach
</tbody>
</table>