X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep705.php;h=c9b3fd1ac201d9e77aa58c52bef63098354e4038;hb=33dfc21a26f08e9ac19048bbcf80cce2351a6cfe;hp=88e1ec6b92d17b2126875bbfb21bdc54d343d79d;hpb=0489317205141deaecefe3a7243d11a3e38a51d0;p=fa-stable.git diff --git a/reporting/rep705.php b/reporting/rep705.php index 88e1ec6b..c9b3fd1a 100644 --- a/reporting/rep705.php +++ b/reporting/rep705.php @@ -163,7 +163,7 @@ function display_type ($type, $typename, $yr, $mo, $convert, &$dec, &$rep, $dime function print_annual_expense_breakdown() { - global $path_to_root, $date_system; + global $path_to_root, $SysPrefs; $dim = get_company_pref('use_dimension'); $dimension = $dimension2 = 0; @@ -218,9 +218,9 @@ function print_annual_expense_breakdown() $yr = $row['yr']; $mo = $row['mo']; $da = 1; - if ($date_system == 1) + if ($SysPrefs->date_system == 1) list($yr, $mo, $da) = jalali_to_gregorian($yr, $mo, $da); - elseif ($date_system == 2) + elseif ($SysPrefs->date_system == 2) list($yr, $mo, $da) = islamic_to_gregorian($yr, $mo, $da); $per12 = strftime('%b',mktime(0,0,0,$mo,$da,$yr)); $per11 = strftime('%b',mktime(0,0,0,$mo-1,$da,$yr)); @@ -277,7 +277,8 @@ function print_annual_expense_breakdown() $rep = new FrontReport(_('Annual Expense Breakdown'), "AnnualBreakDown", user_pagesize(), 9, $orientation); if ($orientation == 'L') - $rep->recalculate_cols($cols); + recalculate_cols($cols); + $rep->Font(); $rep->Info($params, $cols, $headers, $aligns); $rep->NewPage(); @@ -331,4 +332,3 @@ function print_annual_expense_breakdown() $rep->End(); } -?> \ No newline at end of file