Skip to content

Commit

Permalink
adds note to log listener and checkout accept notif
Browse files Browse the repository at this point in the history
  • Loading branch information
Godmartinz committed Apr 3, 2024
1 parent 43c32fa commit 08f9aae
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/Http/Controllers/Account/AcceptanceController.php
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ public function store(Request $request, $id)
'item_model' => $display_model,
'item_serial' => $item->serial,
'eula' => $item->getEula(),
'note' => $request->input('note'),
'check_out_date' => Carbon::parse($acceptance->created_at)->format('Y-m-d'),
'accepted_date' => Carbon::parse($acceptance->accepted_at)->format('Y-m-d'),
'assigned_to' => $assigned_to,
Expand Down
1 change: 1 addition & 0 deletions app/Listeners/LogListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ public function onCheckoutAccepted(CheckoutAccepted $event)
$logaction->target()->associate($event->acceptance->assignedTo);
$logaction->accept_signature = $event->acceptance->signature_filename;
$logaction->filename = $event->acceptance->stored_eula_file;
$logaction->note = $event->acceptance->note;
$logaction->action_type = 'accepted';

// TODO: log the actual license seat that was checked out
Expand Down
2 changes: 2 additions & 0 deletions app/Notifications/AcceptanceAssetAcceptedNotification.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ public function __construct($params)
$this->item_serial = $params['item_serial'];
$this->accepted_date = Helper::getFormattedDateObject($params['accepted_date'], 'date', false);
$this->assigned_to = $params['assigned_to'];
$this->note = $params['note'];
$this->company_name = $params['company_name'];
$this->settings = Setting::getSettings();

Expand Down Expand Up @@ -64,6 +65,7 @@ public function toMail()
'item_tag' => $this->item_tag,
'item_model' => $this->item_model,
'item_serial' => $this->item_serial,
'note' => $this->note,
'accepted_date' => $this->accepted_date,
'assigned_to' => $this->assigned_to,
'company_name' => $this->company_name,
Expand Down

0 comments on commit 08f9aae

Please sign in to comment.