X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Freports_classes.inc;h=995a39d73c7a535481c3678fd155ecb1e765958a;hb=412b79dc32855f813d03a8a6dd9debd45bb308f5;hp=354aab4d1b6644191cb04933a3bffed49dcb6836;hpb=da8311619dd73feae101d246a1957b972e00cbd2;p=fa-stable.git diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index 354aab4d..995a39d7 100644 --- a/reporting/includes/reports_classes.inc +++ b/reporting/includes/reports_classes.inc @@ -85,7 +85,13 @@ class Report } function getDisplay() { - global $path_to_root; + global $comp_path, $path_to_root, $use_date_picker; + + $rep_file = $comp_path.'/'.user_company(). + "/reporting/rep".$this->id.".php"; + if (!file_exists($rep_file)) + $rep_file = $path_to_root ."/reporting/rep".$this->id.".php"; + $st = "