Hi, I would like to send a page break in the Quote Template to start a new page. The Terms and Conditions (fine print) needs to print on a separate page.
Platform is On Demand, Ultimate.
Hi, I would like to send a page break in the Quote Template to start a new page. The Terms and Conditions (fine print) needs to print on a separate page.
Platform is On Demand, Ultimate.
You need to:
public function display()
{
parent::display();$lastPageTemplate = $this->bean->db->getConnection()->fetchColumn(
"SELECT body_html FROM pdfmanager
WHERE deleted = 0 AND name = CONCAT((SELECT name FROM pdfmanager WHERE id = ?), ' - LAST_PAGE')",
[$_REQUEST['pdf_template_id']]
);
if(!empty($lastPageTemplate)){
$this->AddPage();
$this->writeHTML($lastPageTemplate, $this->smartyLn, $this->smartyFill, $this->smartyReseth, $this->smartyCell, $this->smartyAlign);
}
}
Regards
André Lopes - Many thanks. I was trying to avoid that route but oh well. I appreciate your post and I am sure others will as well that are facing the same Use Case.
André Lopes - Many thanks. I was trying to avoid that route but oh well. I appreciate your post and I am sure others will as well that are facing the same Use Case.