Skip to content

A free open source IT asset/license management system

Display accessory checkout qty in subject line

Marcus Moore6d8bf2c66520
diff --git a/app/Mail/CheckoutAccessoryMail.php b/app/Mail/CheckoutAccessoryMail.php
index 92ce84a2d6..b1bab86c88 100644
--- a/app/Mail/CheckoutAccessoryMail.php
+++ b/app/Mail/CheckoutAccessoryMail.php
@@ -43,7 +43,7 @@ class CheckoutAccessoryMail extends Mailable
return new Envelope(
from: $from,
- subject: trans('mail.Accessory_Checkout_Notification'),
+ subject: trans_choice('mail.Accessory_Checkout_Notification', $this->checkout_qty),
);
}
diff --git a/resources/lang/en-US/mail.php b/resources/lang/en-US/mail.php
index 53e0c1dc83..bb5c077ebe 100644
--- a/resources/lang/en-US/mail.php
+++ b/resources/lang/en-US/mail.php
@@ -3,7 +3,7 @@
return [
'Accessory_Checkin_Notification' => 'Accessory checked in',
- 'Accessory_Checkout_Notification' => 'Accessory checked out',
+ 'Accessory_Checkout_Notification' => 'Accessory checked out|:count Accessories checked out',
'Asset_Checkin_Notification' => 'Asset checked in: :tag',
'Asset_Checkout_Notification' => 'Asset checked out: :tag',
'Confirm_Accessory_Checkin' => 'Accessory checkin confirmation',