Skip to content

A free open source IT asset/license management system

Fixed accessor for console view

snipe0aebd669b272
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,