For instance, to get the invoice aging report in landscape you would rewrite the corresponding function in modules/reports/controllers/reports.php as:
public function invoice_aging()
{
if ($this->input->post('btn_submit'))
{
$data = array(
'results' => $this->mdl_reports->invoice_aging()
);
$html = $this->load->view('reports/invoice_aging', $data, TRUE);
// we are not using the mpdf helper
// $this->load->helper('mpdf');
// pdf_create($html, lang('invoice_aging'), TRUE);
// but we need the mpdf library
require_once(APPPATH . 'helpers/mpdf/mpdf.php');
$mpdf = new mPDF('c', 'A4-L');
$mpdf->SetAutoFont();
$mpdf->WriteHTML($html);
$mpdf->Output($filename . '.pdf', 'I');
}
$this->layout->buffer('content', 'reports/invoice_aging_index')->render();
}
where “A4-L” indicates the page size and orientation.
Sorry I forgot to answer.
If the layout is the only thing that is different you could choose another layout in the settings but directly set do this from the invoice overview wouldn’t be possible at the moment.
I’m not sure I understand what you mean. I was thinking of assigning the “Paid” pdf temlate as the receipt. How would I then create a link to generate that PDF?
thanks for the advice! when you said in your previous comment “choose another layout in the settings”, di you mean that I would have to change the default invoice to the “receipt layout”, and download/print the resulting pdf, thn revert back to the default invoice temoplate?