0000918: GL Inquiry, trial balance for a non-balance account for non-current year...
[fa-stable.git] / gl / inquiry / gl_trial_balance.php
index 12aa232445eb8404c49d476992d4877348d43b22..53738843364d6462b6227b6ba5018933363bff8e 100644 (file)
@@ -75,7 +75,8 @@ function display_trial_balance($type, $typename)
        //Get Accounts directly under this group/type
        $accounts = get_gl_accounts(null, null, $type);         
        
-       $begin = begin_fiscalyear();
+       $begin = get_fiscalyear_begin_for_date($_POST['TransFromDate']);
+       //$begin = begin_fiscalyear();
        if (date1_greater_date2($begin, $_POST['TransFromDate']))
                $begin = $_POST['TransFromDate'];
        $begin = add_days($begin, -1);