X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep708.php;h=979ca2e1e4a45bffa0d9e871a8627e209f11b8b7;hb=2bbf52478cf6cbf4fb89395f18390f1a6af93f40;hp=e57d0a9f7265860fa0908b758454aadc52ff6e9c;hpb=2868af36843011d5f96da63e0ddeea05039a7bf5;p=fa-stable.git diff --git a/reporting/rep708.php b/reporting/rep708.php index e57d0a9f..979ca2e1 100644 --- a/reporting/rep708.php +++ b/reporting/rep708.php @@ -19,6 +19,7 @@ $page_security = 'SA_GLANALYTIC'; $path_to_root=".."; include_once($path_to_root . "/includes/session.inc"); +include_once($path_to_root . "/admin/db/fiscalyears_db.inc"); include_once($path_to_root . "/includes/ui.inc"); include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/data_checks.inc"); @@ -37,7 +38,7 @@ function display_type ($type, $typename, &$dec, &$rep, $from, $to, $zero, $balan //Get Accounts directly under this group/type $accounts = get_gl_accounts(null, null, $type); - $begin = begin_fiscalyear(); + $begin = get_fiscalyear_begin_for_date($from); if (date1_greater_date2($begin, $from)) $begin = $from; $begin = add_days($begin, -1);