Size changes in cancel notification pdf

This commit is contained in:
Frank Schubert
2024-07-11 18:32:17 +02:00
parent 806e63d5e2
commit 8c2c3cbcbe
3 changed files with 9 additions and 9 deletions

View File

@@ -15,9 +15,9 @@ $this->setReturnValue([
<link href="<?=$ressourcePathPrefix?>assets/css/print.css" rel="stylesheet" type="text/css" />
<style type="text/css">
body {
margin-left: 48pt;
margin-right: 48pt;
font-size: 12pt;
margin-left: 36pt;
margin-right: 36pt;
font-size: 11pt;
}
</style>
</head>
@@ -28,11 +28,11 @@ $this->setReturnValue([
</div>
<div>
<img src="<?=$ressourcePathPrefix?>assets/images/xinon-full.png" style="height: 100pt;" />
<img src="<?=$ressourcePathPrefix?>assets/images/xinon-full.png" style="height: 80pt;" />
</div>
<div style="height:48pt;"></div>
<div style="height:36pt;"></div>
<div>

View File

@@ -238,8 +238,8 @@ class Contract extends mfBaseModel {
"owner" => $this->getProperty("owner")
];
$pdf = new PdfForm("Emailtemplates/attachments/cancel_notification.pdf", $pdf_vars);
//$pdf->download();
//exit;
$pdf->download();
exit;
$pdfpath = $pdf->render();
$tvalue = $pdf->getReturnedValues();
$pdfname = $tvalue["filename"];

View File

@@ -231,7 +231,7 @@ class ContractController extends mfBaseController
}
/*protected function sendCancelNotification() {
protected function sendCancelNotification() {
$contract_id = $this->request->contract_id;
$contract = new Contract($contract_id);
@@ -252,7 +252,7 @@ class ContractController extends mfBaseController
$this->redirect("Contract", "view", ["contract_id" => $contract_id]);
}*/
}
protected function productchangeAction()
{