Skip to content

Commit 625a46a

Browse files
committed
Merge remote-tracking branch 'origin/develop'
2 parents ebc1e27 + be4ace2 commit 625a46a

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

app/Models/CheckoutAcceptance.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,9 @@ public function generateAcceptancePdf($data, $pdf_filename) {
207207
if ($data['item_serial'] != null) {
208208
$pdf->writeHTML(trans('admin/hardware/form.serial').': '.e($data['item_serial']), true, 0, true, 0, '');
209209
}
210+
if (($data['qty'] != null) && ($data['qty'] > 1)) {
211+
$pdf->writeHTML(trans('general.qty').': '.e($data['qty']), true, 0, true, 0, '');
212+
}
210213
$pdf->writeHTML(trans('general.assignee').': '.e($data['assigned_to']), true, 0, true, 0, '');
211214
$pdf->Ln();
212215
$pdf->writeHTML('<hr>', true, 0, true, 0, '');

app/Notifications/AcceptanceAssetAcceptedToUserNotification.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,10 @@ public function toMail()
7272
'company_name' => $this->company_name,
7373
'admin' => $this->admin,
7474
'qty' => $this->qty,
75-
'intro_text' => trans('mail.acceptance_asset_accepted_to_user', ['site_name' => $this->company_name ?? $this->settings->site_name]),
75+
'intro_text' => trans_choice('mail.acceptance_asset_accepted_to_user', $this->qty, ['qty' => $this->qty, 'site_name' => $this->settings->site_name]),
7676
])
7777
->attach($pdf_path)
78-
->subject(trans('mail.acceptance_asset_accepted_to_user', ['site_name' => $this->settings->site_name]));
78+
->subject(trans_choice('mail.acceptance_asset_accepted_to_user', $this->qty, ['qty' => $this->qty, 'site_name' => $this->settings->site_name]));
7979

8080
return $message;
8181
}

resources/lang/en-US/mail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
'Low_Inventory_Report' => 'Low Inventory Report',
3232
'a_user_canceled' => 'A user has canceled an item request on the website',
3333
'a_user_requested' => 'A user has requested an item on the website',
34-
'acceptance_asset_accepted_to_user' => 'You have accepted an item assigned to you by :site_name',
34+
'acceptance_asset_accepted_to_user' => 'You have accepted an item assigned to you by :site_name|You have accepted :qty items assigned to you by :site_name',
3535
'acceptance_asset_accepted' => 'A user has accepted an item',
3636
'acceptance_asset_declined' => 'A user has declined an item',
3737
'send_pdf_copy' => 'Send a copy of this acceptance to my email address',

0 commit comments

Comments
 (0)