X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep705.php;h=c9b3fd1ac201d9e77aa58c52bef63098354e4038;hb=33dfc21a26f08e9ac19048bbcf80cce2351a6cfe;hp=c09d0a47d07af7b2609827922c9db948cae9ce1f;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/reporting/rep705.php b/reporting/rep705.php index c09d0a47..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));