X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Fpdf_report.inc;h=9c86c2ec949ce9966aca6ec2914c4af3e3f0d387;hb=42d43355016c70473fa06851baa60c5ea34e7c96;hp=627031f587f550923034774d4bb72b339bef9499;hpb=08e465dd87f4929fcd07ba944c4451bc3437f2b3;p=fa-stable.git diff --git a/reporting/includes/pdf_report.inc b/reporting/includes/pdf_report.inc index 627031f5..9c86c2ec 100644 --- a/reporting/includes/pdf_report.inc +++ b/reporting/includes/pdf_report.inc @@ -363,16 +363,19 @@ class FrontReport extends Cpdf if ($this->pageNumber > 1) $this->newPage(); $header2type = true; + + // leave layout files names without path to enable including + // modified versions from comapny/x/reporting directory if (isset($myrow['curr_code']) && $this->currency != $myrow['curr_code']) { - include($path_to_root . "/reporting/includes/doctext2.inc"); + include("includes/doctext2.inc"); } else { - include($path_to_root . "/reporting/includes/doctext.inc"); + include("includes/doctext.inc"); } - include($path_to_root . "/reporting/includes/header2.inc"); + include("includes/header2.inc"); $this->row = $temp; } @@ -916,11 +919,11 @@ class FrontReport extends Cpdf $emailtype = true; if ($this->currency != $myrow['curr_code']) { - include("doctext2.inc"); + include("includes/doctext2.inc"); } else { - include("doctext.inc"); + include("includes/doctext.inc"); } require_once($path_to_root . "/reporting/includes/class.mail.inc"); $mail = new email($this->company['coy_name'], $this->company['email']);