1 (edited by kvvaradha 07/09/2018 10:57:37 am)

Topic: Fiscal year delete leads to undefined variable $total

Yes, When i tried to delete the fiscal year, it encountered an error

Undefined variable: total in file: /var/www/FrontAccounting/admin/db/fiscalyears_db.inc at line 377

I think it has the solution from the previous versions.

Subscription service based on FA
HRM CRM POS batch Themes

Re: Fiscal year delete leads to undefined variable $total

@joe: How did this miss us? Probably no one generally deletes fiscal years that often....

There is no $total available anywhere in the said function's scope. Is it any global one?

The commit that introduced this line of code is here.
What is the need to add this journal entry here? There is no such addition in FA 2.3.26 and the rest of the code in this block was introduced in July 2011 in FA v2.3.6.

Re: Fiscal year delete leads to undefined variable $total

I am not sure.  But this may be their idea to get $total  here.

Subscription service based on FA
HRM CRM POS batch Themes

Re: Fiscal year delete leads to undefined variable $total

I will check this in a while.

Joe

Re: Fiscal year delete leads to undefined variable $total

Hello Guys,

This has been fixed and committed to stable.

You can download the fix here.

JOe