Skip to content

Commit 0ea9c06

Browse files
committed
Merge remote-tracking branch 'origin/develop'
# Conflicts: # config/version.php
2 parents 884d2a9 + 00b9ba2 commit 0ea9c06

File tree

852 files changed

+4093
-2535
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

852 files changed

+4093
-2535
lines changed

app/Http/Controllers/Account/AcceptanceController.php

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public function store(Request $request, $id) : RedirectResponse
7777
$acceptance = CheckoutAcceptance::find($id);
7878
$assigned_user = User::find($acceptance->assigned_to_id);
7979
$settings = Setting::getSettings();
80-
$path_logo = '';
8180
$sig_filename='';
8281

8382

@@ -138,6 +137,13 @@ public function store(Request $request, $id) : RedirectResponse
138137
}
139138

140139

140+
// Convert PDF logo to base64 for TCPDF
141+
// This is needed for TCPDF to properly embed the image if it's a png and the cache isn't writable
142+
$encoded_logo = null;
143+
if ($settings->acceptance_pdf_logo) {
144+
$encoded_logo = base64_encode(file_get_contents(public_path() . '/uploads/' . $settings->acceptance_pdf_logo));
145+
}
146+
141147
// Get the data array ready for the notifications and PDF generation
142148
$data = [
143149
'item_tag' => $item->asset_tag,
@@ -153,8 +159,8 @@ public function store(Request $request, $id) : RedirectResponse
153159
'assigned_to' => $assigned_user->display_name,
154160
'site_name' => $settings->site_name,
155161
'company_name' => $item->company?->name?? $settings->site_name,
156-
'signature' => ($sig_filename) ? storage_path() . '/private_uploads/signatures/' . $sig_filename : null,
157-
'logo' => ($settings->acceptance_pdf_logo) ? public_path() . '/uploads/' . $settings->acceptance_pdf_logo : null,
162+
'signature' => (($sig_filename && array_key_exists('1', $encoded_image))) ? $encoded_image[1] : null,
163+
'logo' => ($encoded_logo) ?? null,
158164
'date_settings' => $settings->date_display_format,
159165
'admin' => auth()->user()->present()?->fullName,
160166
'qty' => $acceptance->qty ?? 1,

app/Models/CheckoutAcceptance.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ public function generateAcceptancePdf($data, $pdf_filename) {
184184

185185
$pdf->AddPage();
186186
if ($data['logo'] != null) {
187-
$pdf->writeHTML('<img src="'.$data['logo'].'">', true, 0, true, 0, '');
187+
$pdf->writeHTML('<img src="@'.$data['logo'].'">', true, 0, true, 0, '');
188188
} else {
189189
$pdf->writeHTML('<h3>'.$data['site_name'].'</h3><br /><br />', true, 0, true, 0, 'C');
190190
}
@@ -230,7 +230,7 @@ public function generateAcceptancePdf($data, $pdf_filename) {
230230
$pdf->Ln();
231231

232232
if ($data['signature'] != null) {
233-
$pdf->writeHTML('<img src="'.$data['signature'].'">', true, 0, true, 0, '');
233+
$pdf->writeHTML('<img src="@'.$data['signature'].'">', true, 0, true, 0, '');
234234
$pdf->writeHTML('<hr>', true, 0, true, 0, '');
235235
$pdf->writeHTML(e($data['assigned_to']), true, 0, true, 0, 'C');
236236
$pdf->Ln();

config/version.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22
return array (
3-
'app_version' => 'v8.3.2',
4-
'full_app_version' => 'v8.3.2 - build 19905-g028b4e7b7',
5-
'build_version' => '19905',
3+
'app_version' => 'v8.3.3',
4+
'full_app_version' => 'v8.3.3 - build 20061-g884d2a955',
5+
'build_version' => '20061',
66
'prerelease_version' => '',
7-
'hash_version' => 'g028b4e7b7',
8-
'full_hash' => 'v8.3.2-319-g028b4e7b7',
7+
'hash_version' => 'g884d2a955',
8+
'full_hash' => 'v8.3.3-154-g884d2a955',
99
'branch' => 'master',
1010
);

resources/lang/aa-ER/admin/custom_fields/general.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'manage' => 'crwdns6501:0crwdne6501:0',
66
'field' => 'crwdns1487:0crwdne1487:0',
77
'about_fieldsets_title' => 'crwdns1488:0crwdne1488:0',
8-
'about_fieldsets_text' => 'crwdns13508:0crwdne13508:0',
8+
'about_fieldsets_text' => 'crwdns13746:0crwdne13746:0',
99
'custom_format' => 'crwdns6505:0crwdne6505:0',
1010
'encrypt_field' => 'crwdns1792:0crwdne1792:0',
1111
'encrypt_field_help' => 'crwdns1683:0crwdne1683:0',

resources/lang/aa-ER/admin/depreciations/general.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
return [
44
'about_asset_depreciations' => 'crwdns819:0crwdne819:0',
5-
'about_depreciations' => 'crwdns820:0crwdne820:0',
5+
'about_depreciations' => 'crwdns13748:0crwdne13748:0',
66
'asset_depreciations' => 'crwdns821:0crwdne821:0',
77
'create' => 'crwdns1799:0crwdne1799:0',
88
'depreciation_name' => 'crwdns823:0crwdne823:0',

resources/lang/aa-ER/admin/hardware/form.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@
4444
'redirect_to_checked_out_to' => 'crwdns12226:0crwdne12226:0',
4545
'select_statustype' => 'crwdns1167:0crwdne1167:0',
4646
'serial' => 'crwdns716:0crwdne716:0',
47+
'serial_required' => 'crwdns13774:0crwdne13774:0',
48+
'serial_required_post_model_update' => 'crwdns13776:0crwdne13776:0',
4749
'status' => 'crwdns717:0crwdne717:0',
4850
'tag' => 'crwdns719:0crwdne719:0',
4951
'update' => 'crwdns720:0crwdne720:0',

resources/lang/aa-ER/admin/hardware/general.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
'requested' => 'crwdns1697:0crwdne1697:0',
2323
'not_requestable' => 'crwdns6555:0crwdne6555:0',
2424
'requestable_status_warning' => 'crwdns11681:0crwdne11681:0',
25+
'require_serial' => 'crwdns13770:0crwdne13770:0',
26+
'require_serial_help' => 'crwdns13772:0crwdne13772:0',
2527
'restore' => 'crwdns1178:0crwdne1178:0',
2628
'pending' => 'crwdns1170:0crwdne1170:0',
2729
'undeployable' => 'crwdns1171:0crwdne1171:0',

resources/lang/aa-ER/admin/licenses/message.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,12 @@
4646
'not_enough_seats' => 'crwdns11902:0crwdne11902:0',
4747
'mismatch' => 'crwdns12574:0crwdne12574:0',
4848
'unavailable' => 'crwdns12576:0crwdne12576:0',
49+
'license_is_inactive' => 'crwdns13798:0crwdne13798:0',
4950
),
5051

5152
'checkin' => array(
5253
'error' => 'crwdns948:0crwdne948:0',
53-
'not_reassignable' => 'crwdns12802:0crwdne12802:0',
54+
'not_reassignable' => 'crwdns13778:0crwdne13778:0',
5455
'success' => 'crwdns949:0crwdne949:0'
5556
),
5657

resources/lang/aa-ER/admin/locations/message.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,13 @@
33
return array(
44

55
'does_not_exist' => 'crwdns650:0crwdne650:0',
6-
'assoc_users' => 'crwdns13150:0crwdne13150:0',
6+
'assoc_users' => 'crwdns13788:0crwdne13788:0',
77
'assoc_assets' => 'crwdns1404:0crwdne1404:0',
88
'assoc_child_loc' => 'crwdns1405:0crwdne1405:0',
99
'assigned_assets' => 'crwdns11179:0crwdne11179:0',
1010
'current_location' => 'crwdns11181:0crwdne11181:0',
1111
'open_map' => 'crwdns12696:0crwdne12696:0',
12+
'deleted_warning' => 'crwdns13790:0crwdne13790:0',
1213

1314

1415
'create' => array(

resources/lang/aa-ER/admin/locations/table.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
'create' => 'crwdns644:0crwdne644:0',
1313
'update' => 'crwdns645:0crwdne645:0',
1414
'print_assigned' => 'crwdns6062:0crwdne6062:0',
15-
'print_all_assigned' => 'crwdns6064:0crwdne6064:0',
15+
'print_inventory' => 'crwdns13792:0crwdne13792:0',
16+
'print_all_assigned' => 'crwdns13794:0crwdne13794:0',
1617
'name' => 'crwdns646:0crwdne646:0',
1718
'address' => 'crwdns647:0crwdne647:0',
1819
'address2' => 'crwdns11880:0crwdne11880:0',

0 commit comments

Comments
 (0)