X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Freports_classes.inc;h=995a39d73c7a535481c3678fd155ecb1e765958a;hb=cf015790b7363cfcf29b98c82d20787c8d703fc1;hp=06eff1bd8e6fdc3f00e1131116bdb5a43b8a27c7;hpb=c7353ffde8fbcd970585936b006641dfaa1f7f77;p=fa-stable.git diff --git a/reporting/includes/reports_classes.inc b/reporting/includes/reports_classes.inc index 06eff1bd..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, $use_date_picker; + 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 = "