X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep705.php;h=2c5ce3f53b36949a910141c35dc0d835f259c706;hb=f63c58475b057c9f4a05894a6935ea351b6d7af3;hp=90a5e97e55a48918e966505431ad169e25a0e5ca;hpb=da8311619dd73feae101d246a1957b972e00cbd2;p=fa-stable.git diff --git a/reporting/rep705.php b/reporting/rep705.php index 90a5e97e..2c5ce3f5 100644 --- a/reporting/rep705.php +++ b/reporting/rep705.php @@ -70,7 +70,7 @@ function getPeriods($year, $account, $dimension, $dimension2) function print_annual_expense_breakdown() { - global $path_to_root; + global $path_to_root, $date_system; include_once($path_to_root . "reporting/includes/pdf_report.inc"); $dim = get_company_pref('use_dimension'); @@ -106,6 +106,10 @@ function print_annual_expense_breakdown() $yr = $year; $mo = 12; $da = 1; + if ($date_system == 1) + list($yr, $mo, $da) = jalali_to_gregorian($yr, $mo, $da); + else if ($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)); $per10 = strftime('%b',mktime(0,0,0,$mo-2,$da,$yr));