1 (edited by LUTi 01/16/2011 07:23:09 pm)

Topic: Trial Balance not working

To try out the new version (2.3.1), I've set a starting balance in 2008 (according to the instructions), and entered some transaction in the mid of January 2009. When I go to the Trial Balance, the dates are:
From: 17.12.2010 (??? - shouldn't it be 17.1.2010, or 1.1.2011?!)
To: 16.1.2011 (today)

Even if I change these dates to 1.1.2009 - 31.12.2009, nothing is displayed...

I've found out the reason seems to be that $_POST['TransFromDate'] isn't changed as I change it in form, so the check at the beginning of display_trial_balance() always fails. What is interesting is that the error (just 2 lines above 'return' clause) isn't displayed anymore (just initially, but not after I change the date and click 'Show' button).

Commenting out the whole:

if (isset($_POST['TransFromDate]))
{
   ...
}

at the beginning of display_trial_balance() function seems to resolve the problem (the trial balance is displayed after).

Re: Trial Balance not working

The From date is always displayed initially to today - 30 days and the to date is today.
In those cases where your fiscal year is set to, say 2008 you will probably get an unintended result with non closed fiscal year.
This is the reason for setting this restriction, to always have the from date inside the fiscal year.

/Joe

Re: Trial Balance not working

But in my case nothing was displayed even after setting the dates within a current fiscal year (please see above, my fiscal year is 1.1.2009 - 31.12.2009, and dates for a trial balance are set to the same period). So, my from date is within a fiscal year.

As said, I suspect after opening a form, starting date for a trial balance period is somehow not checked anymore (not actualized, as I change it). What is weird is that the error message is not displayed anymore, just initially (but, the code execution always ends at that point - I've tried to put some debugging output to some different positions within this function, and simply couldn't get any further than that; I've also noticed the starting date didn't change as I've changed it...)

Re: Trial Balance not working

I cannot reproduce your problem. Do you get the same problem when running the demo?

http://demo.frontaccounting.eu

Joe

Re: Trial Balance not working

I can confirm it works fine in 2.3.3 (function seems to be quite different now).