<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — FA won't close fiscal year]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6080&amp;type=atom" />
	<updated>2016-06-03T07:38:17Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6080</id>
		<entry>
			<title type="html"><![CDATA[Re: FA won't close fiscal year]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25595#p25595" />
			<content type="html"><![CDATA[<p>In FA 2.3 only some tables are InnoDB by default. You can try to first use the option of <a href="https://dev.mysql.com/doc/refman/5.5/en/innodb-multiple-tablespaces.html">one-file-per-table</a> so that the tables are moved away from the heap.</p><p>What version of MySQL are you using?<br />It is also possible you may have hit the limit of <a href="https://dtbaker.net/web-development/changing-the-max-allowed-post-variables/">max_input_vars</a>.</p><p>The MySQL will go away only when it does not have sufficient resources to continue to run.</p><p>Which tables in FA are you referring to?<br />What indexes are present for them and whether you have some additional index for optimisation from <a href="https://github.com/apmuthu/frontaccounting/blob/master/FAMods/sql/alter_to_latest2.3.sql">here</a>.</p><p>1. Manually take backup of FA db.<br />2. Before deleting fiscal year from table, note it&#039;s <strong>id</strong>.<br />3. Check the entity relationship diagrams for all references to the fiscal year id.<br />4. The <strong>fiscal_year</strong> table&#039;s <strong>id</strong> field is related to <strong>fiscal_year</strong> field in <strong>audit_trail</strong> table.<br />5. In all other tables, the date is compared to check whether it is within the fiscal_year&#039;s date range.<br />6. In the <strong>sys_prefs</strong> table, there is a record for <strong>name= &#039;f_year&#039;</strong>.</p><p>You might want to copy over the records you want to retain to a new table and delete the current table and then rename the newly created table to the original table&#039;s name.</p><p>The <strong><em>function</em> delete_this_fiscalyear($selected_id)</strong> in <em>admin/db/fiscalyears_db.inc</em> does the fiscal_year deletion.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-06-03T07:38:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25595#p25595</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA won't close fiscal year]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25594#p25594" />
			<content type="html"><![CDATA[<p>By Unkowing the `Changes.txt` was deleted. That file is not available to get the file modified time. so it failed to work on.&nbsp; Soi solved it easily.</p><p>Now,the problem is large rows. It has more than 16,32,000 rows in my database.&nbsp; I have to delete more than 12,00,000 rows now.So when i click the delete button. It first creates backup of the db. While making backup it has reported the error of &quot; MYSQL Server Gone Away&quot; .&nbsp; So, its not working now. </p><p>I want to it to perform like separated files and merge it one after exporting all in different files. And there after i need to schedule the delete operation too. I think we can&#039;t delete all the rows in single delete.&nbsp; for that issue, we have to use limiting for the deleting rows count.&nbsp; Let me know,whether&nbsp; am in the current track or not. </p><p>Is any other alternative for it. ?</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2016-06-03T05:47:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25594#p25594</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA won't close fiscal year]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25589#p25589" />
			<content type="html"><![CDATA[<p>@kvvaradha: When you say you fixed it, you need to explain what you did so that the forum users can follow it. Was it a permissions issue or was the <strong>$path_to_root</strong> variable wrong at your end, etc.</p><p>Whilst deleting a fiscal year, turn on the sql_debug audit trail in config file and see what all sql statements are used. Then restore back to the pre-delete state and try out the sql statements one by one and see which statement takes a long time and what indexes are associated with the tables concerned that take time to re-index. Then place a pause like <strong>sleep(10);</strong> in the php code there so that there is sufficient time to complete the deletion/re-index process before carrying on.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-06-02T12:50:00Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25589#p25589</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA won't close fiscal year]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25588#p25588" />
			<content type="html"><![CDATA[<p>Thank you&nbsp; @apmuthu, </p><p>I fixed it.&nbsp; But the problem is its large data. so its not working when i am deleting all together. </p><p>Is there any scheduled delete or something else for it.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2016-06-02T05:34:28Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25588#p25588</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA won't close fiscal year]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25585#p25585" />
			<content type="html"><![CDATA[<p>FA 2.4 <em>config.default.php</em> lines 49-50:<br /></p><div class="codebox"><pre><code>    // Build for development purposes
    $build_version     = date(&quot;d.m.Y&quot;, filemtime(&quot;$path_to_root/CHANGELOG.txt&quot;));</code></pre></div><p>Check the value of <strong>$path_to_root</strong> at that point.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-06-01T15:32:35Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25585#p25585</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA won't close fiscal year]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25580#p25580" />
			<content type="html"><![CDATA[<p>i got this error</p><p>filemtime(): stat failed for ../CHANGELOG.txt in file: /home/user/public_html/FA2.3.24/config.php at line 65</p><p>can you please help me on it?</p><p>I have found the issue and solved it. But still its not deleting the fiscal year.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2016-06-01T07:53:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25580#p25580</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA won't close fiscal year]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25034#p25034" />
			<content type="html"><![CDATA[<p>It stands <a href="https://github.com/FrontAccountingERP/FA/commit/608704f10d54c49d4e8400ed173edd909431f759">committed in the FA 2.4 repo</a> now.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-01-17T02:01:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25034#p25034</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA won't close fiscal year]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25016#p25016" />
			<content type="html"><![CDATA[<p>The problem is due to missing </p><p>require_once($path_to_root.&quot;/includes/ui/items_cart.inc); </p><p>line at the top of /admin/db/fiscalyears_db.inc.</p><p>You can insert it yourself and thank you for detecting this bug.</p><p>It will be fixed asap in the repository to go to release candidate 1 shortly.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2016-01-08T13:08:51Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25016#p25016</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA won't close fiscal year]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25013#p25013" />
			<content type="html"><![CDATA[<p>I&#039;m using Version 2.4 beta Build 14.05.2015 on Ubuntu 14.04.3</p><br /><p>After setting the go_debug to 1, I this error message when I try to close a year:</p><p> Class &#039;items_cart&#039; not found in /mnt/raid/Donnees/donnees/frontaccounting-2.4.0/admin/db/fiscalyears_db.inc on line 162</p><br /><p>I was using 2.3.24 and upgraded to 2.4 not so long ago. I sucesfully upgraded the database, but I had to manually copy installed_extension.php in several places to get 2.4 working. Maybe I missed copying something else.</p><p>Thanks for your help!</p><p>Patrick</p>]]></content>
			<author>
				<name><![CDATA[elperepat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20774</uri>
			</author>
			<updated>2016-01-07T21:34:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25013#p25013</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: FA won't close fiscal year]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25003#p25003" />
			<content type="html"><![CDATA[<p>Please, set the variable, $go_debug, in config.php to either 1 or 2 to trap any errors.<br />I suspect a missing default account for profit and loss current year.it might also be another error.</p><p>Also pleaße tell us the release number of FrontAccounting and other os </p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2016-01-06T18:12:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25003#p25003</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[FA won't close fiscal year]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25001#p25001" />
			<content type="html"><![CDATA[<p>Hi!</p><p>I&#039;ve been using FA for the last 6 months. The features are well thought and it fulfills my needs perfectly.</p><p>I try to close my fiscal year but FA just don&#039;t want to do it and it won&#039;t tell me why.</p><p>I created a new fiscal year (2016-01-01 to 2016-12-31). My previous year was 2015-01-01-2015-12-31. I started using the new fiscal year by selecting it in the &quot;Setup/Company Setup&quot; screen. All is fine. When I want to enter a transaction for last year (depreciation, etc) I switch back to the previous year and add my journal entries.</p><p>After doing that, I think I&#039;m ready to close the fiscal year. I go to the &quot;Setup/Fiscal Years&quot; screen, I get two warnings:</p><p>&quot;Warning: Deleting a fiscal year all transactions are removed and converted into relevant balances. This process is irreversible!&quot;<br />AIlright, I don&#039;t want to delete the fiscal year, only close it.</p><p>and</p><p>&quot;The marked fiscal year is the current fiscal year which cannot be deleted.&quot;<br />Again, I don&#039;t want to delete a year, so all should be good.</p><p>Then, I press the &quot;pencil button&quot; near the past year (2015-01-01 to 2015-12-31). This one has both a pencil and a X button (so I understand it is not the current fiscal year). 2016 only has a &quot;pencil button&quot;.</p><p>I get a &quot;refresh icon&quot; on the middle top of the page, it disappears and nothing else. The year is still open, entries are not done in the GL, and I get no error message.</p><p>How can I know what is going on? And debug or log I could take a look at?</p><br /><p>Thanks</p><br /><p>Patrick</p>]]></content>
			<author>
				<name><![CDATA[elperepat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20774</uri>
			</author>
			<updated>2016-01-06T16:17:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25001#p25001</id>
		</entry>
</feed>
