function print_aged_customer_analysis()
{
- global $comp_path, $path_to_root, $systypes_array;
+ global $path_to_root, $systypes_array;
$to = $_POST['PARAM_0'];
$fromcust = $_POST['PARAM_1'];
$rep->Font();
$rep->Info($params, $cols, $headers, $aligns);
- $rep->Header();
+ $rep->NewPage();
$total = array(0,0,0,0, 0);
$pg->built_in = false;
$pg->fontfile = $path_to_root . "/reporting/fonts/Vera.ttf";
$pg->latin_notation = ($decseps[$_SESSION["wa_current_user"]->prefs->dec_sep()] != ".");
- $filename = $comp_path .'/'. user_company(). "/images/test.png";
+ $filename = company_path(). "/images/test.png";
$pg->display($filename, true);
$w = $pg->width / 1.5;
$h = $pg->height / 1.5;
$x = ($rep->pageWidth - $w) / 2;
$rep->NewLine(2);
if ($rep->row - $h < $rep->bottomMargin)
- $rep->Header();
+ $rep->NewPage();
$rep->AddImage($filename, $x, $rep->row - $h, $w, $h);
}
$rep->NewLine();