From 0aebd669b272822ed4785c42804fc72279872238 Mon Sep 17 00:00:00 2001 From: snipe Date: Fri, 3 Oct 2025 16:25:31 +0100 Subject: [PATCH] Fixed accessor for console view --- app/Console/Commands/SendExpirationAlerts.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Console/Commands/SendExpirationAlerts.php b/app/Console/Commands/SendExpirationAlerts.php index 7ca66ce012..ae9bff48df 100644 --- a/app/Console/Commands/SendExpirationAlerts.php +++ b/app/Console/Commands/SendExpirationAlerts.php @@ -76,7 +76,7 @@ class SendExpirationAlerts extends Command trans('admin/hardware/form.tag') => $item->asset_tag, trans('admin/hardware/form.model') => $item->model->name, trans('general.model_no') => $item->model->model_number, - trans('general.purchase_date') => $item->purchase_date_formatted_date, + trans('general.purchase_date') => $item->purchase_date_formatted, trans('admin/hardware/form.eol_rate') => $item->model->eol, trans('admin/hardware/form.eol_date') => $item->eol_date ? $item->eol_formatted_date .' ('.$item->eol_diff_for_humans.')' : '', trans('admin/hardware/form.warranty_expires') => $item->warranty_expires ? $item->warranty_expires_formatted_date .' ('.$item->warranty_expires_diff_for_humans.')' : '', @@ -97,6 +97,7 @@ class SendExpirationAlerts extends Command [ trans('general.id'), trans('general.name'), + trans('general.purchase_date'), trans('admin/licenses/form.expiration'), trans('mail.expires'), trans('admin/licenses/form.termination_date'), @@ -104,6 +105,7 @@ class SendExpirationAlerts extends Command $licenses->map(fn($item) => [ trans('general.id') => $item->id, trans('general.name') => $item->name, + trans('general.purchase_date') => $item->purchase_date_formatted, trans('admin/licenses/form.expiration') => $item->expires_formatted_date, trans('mail.expires') => $item->expires_diff_for_humans, trans('admin/licenses/form.termination_date') => $item->terminates_formatted_date,