changes to new order PDF

This commit is contained in:
Frank Schubert
2021-08-27 10:59:06 +02:00
parent ad2cdbe4dd
commit 97c73d172d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -383,7 +383,7 @@ class OrderController extends mfBaseController {
if($owner->save()) {
// render service pin PDF
$pdf = Layout::singleton();
$pdf = new Layout();
$pdf->setTemplate("Emailtemplates/attachments/new_order.pdf");
$pdf->set("ressourcePathPrefix", BASEDIR."/public/");
$pdf->set("owner", $owner);
+1 -1
View File
@@ -10,7 +10,7 @@ class mfLayout {
private $returnValue;
protected static $instance;
protected function __construct() {
public function __construct() {
$this->log = mfLoghandler::singleton();
$this->inline = new stdClass();