1 <% include($report_comp) %>
5 unless $FS::CurrentUser::CurrentUser->access_right('Financial reports');
8 $cgi->param('report') =~ /^([.\w]+)$/ && ($report = $1);
9 die "no such report" unless $report;
11 my $prefix = "$FS::UID::cache_dir/cache.$FS::UID::datasrc";
12 open my $fh, "$prefix/report.$report"
13 or die "can't open report: $!\n";
22 #my ($interp, $other) = FS::Mason::mason_interps('standalone');
23 my $interp = $m->interp;
25 eval { $interp->make_component ( comp_source => $reportvalue ) };