mirror of
https://github.com/grokability/snipe-it.git
synced 2026-03-12 17:52:00 +08:00
Small unaccepted items report fixes
This commit is contained in:
@@ -31,7 +31,7 @@ class SendAcceptanceReminder extends Command
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = 'This will resend users with unaccepted assets a reminder to accept or decline them.';
|
||||
protected $description = 'This will resend users with unaccepted items a reminder to accept or decline them.';
|
||||
|
||||
/**
|
||||
* Create a new command instance.
|
||||
|
||||
@@ -1180,7 +1180,7 @@ class ReportsController extends Controller
|
||||
$acceptance = $query->find($id);
|
||||
if (!$acceptance) {
|
||||
Log::debug('No pending acceptances');
|
||||
// Redirect to the unaccepted assets report page with error
|
||||
// Redirect to the unaccepted items report page with error
|
||||
return redirect()->route('reports/unaccepted_assets')->with('error', trans('general.bad_data'));
|
||||
}
|
||||
$item = $acceptance->checkoutable;
|
||||
|
||||
@@ -26,7 +26,7 @@ class Checkoutable
|
||||
$acceptance = $unaccepted;
|
||||
|
||||
$assignee = $acceptance->assignedTo;
|
||||
$company = optional($unaccepted_row->company)->present()?->nameUrl() ?? '';
|
||||
$company = $unaccepted_row->company ? optional($unaccepted_row->company)->present()->nameUrl() : '';
|
||||
$category = $model = $name = $tag = '';
|
||||
$type = $acceptance->checkoutable_item_type ?? '';
|
||||
|
||||
|
||||
@@ -327,7 +327,7 @@ return [
|
||||
'declined' => 'declined',
|
||||
'declined_note' => 'Declined Notes',
|
||||
'unassigned' => 'Unassigned',
|
||||
'unaccepted_asset_report' => 'Unaccepted Assets',
|
||||
'unaccepted_asset_report' => 'Unaccepted Items',
|
||||
'users' => 'Users',
|
||||
'viewall' => 'View All',
|
||||
'viewassets' => 'View Assigned Items',
|
||||
|
||||
@@ -104,7 +104,7 @@ return [
|
||||
'upcoming-audits_click' => 'This email may not contain the full list so as not to exceed email size limits. Click on the button below to view all assets due for audit.',
|
||||
'user' => 'User',
|
||||
'username' => 'Username',
|
||||
'unaccepted_asset_reminder' => 'Reminder: You have Unaccepted Assets.',
|
||||
'unaccepted_asset_reminder' => 'Reminder: You have Unaccepted Items',
|
||||
'welcome' => 'Welcome :name',
|
||||
'welcome_to' => 'Welcome to :web!',
|
||||
'your_assets' => 'View Your Assets',
|
||||
|
||||
@@ -45,7 +45,7 @@ class CheckoutAssetMailTest extends TestCase
|
||||
'asset' => Asset::factory()->requiresAcceptance()->create(),
|
||||
'acceptance' => CheckoutAcceptance::factory()->create(),
|
||||
'first_time_sending' => false,
|
||||
'expected_subject' => 'Reminder: You have Unaccepted Assets.',
|
||||
'expected_subject' => 'Reminder: You have Unaccepted Items',
|
||||
'expected_opening' => 'An item was recently checked out under your name that requires acceptance, details are below.'
|
||||
];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user