Skip to content
Snippets Groups Projects
Commit 8812d342 authored by Florian Azizian's avatar Florian Azizian
Browse files

FIX #14540 TIME 0:15 fix save and print => print without template

parent 35c892ae
No related branches found
No related tags found
No related merge requests found
...@@ -99,7 +99,7 @@ trait RegisteredMailTrait ...@@ -99,7 +99,7 @@ trait RegisteredMailTrait
'data' => [$args['resId']] 'data' => [$args['resId']]
]); ]);
$registeredMailPDF = RegisteredMailController::generateRegisteredMailPDf([ RegisteredMailController::generateRegisteredMailPDf([
'registeredMailNumber' => $registeredMailNumber, 'registeredMailNumber' => $registeredMailNumber,
'type' => $args['data']['type'], 'type' => $args['data']['type'],
'warranty' => $args['data']['warranty'], 'warranty' => $args['data']['warranty'],
...@@ -114,6 +114,17 @@ trait RegisteredMailTrait ...@@ -114,6 +114,17 @@ trait RegisteredMailTrait
if (empty($args['data']['generated'])) { if (empty($args['data']['generated'])) {
return true; return true;
} else { } else {
$registeredMailPDF = RegisteredMailController::generateRegisteredMailPDf([
'registeredMailNumber' => $registeredMailNumber,
'type' => $args['data']['type'],
'warranty' => $args['data']['warranty'],
'letter' => $args['data']['letter'],
'reference' => $reference,
'recipient' => $args['data']['recipient'],
'issuingSite' => $issuingSite,
'resId' => $args['resId'],
'savePdf' => false
]);
return ['data' => ['fileContent' => base64_encode($registeredMailPDF['fileContent']), 'registeredMailNumber' => $registeredMailNumber]]; return ['data' => ['fileContent' => base64_encode($registeredMailPDF['fileContent']), 'registeredMailNumber' => $registeredMailNumber]];
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment