<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Change of Ownership - Delete past years]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10589&amp;type=atom" />
	<updated>2024-09-09T03:40:58Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10589</id>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43371#p43371" />
			<content type="html"><![CDATA[<p>The zip file is the way the master branch is distributed for cutting edge code.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2024-09-09T03:40:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43371#p43371</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43369#p43369" />
			<content type="html"><![CDATA[<p>Is the zip file better than git master branch?</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2024-09-05T23:29:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43369#p43369</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43367#p43367" />
			<content type="html"><![CDATA[<p>The release tags if any are outdated as several updates in the 2 months since it&#039;s release will be available from the bleeding edge download at:<br />https://github.com/FrontAccountingERP/FA/archive/refs/heads/master.zip</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2024-09-05T15:55:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43367#p43367</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43366#p43366" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>The README.md file has a GitHub Mirror Link:<br />https://github.com/FrontAccountingERP/FA</p></blockquote></div><p>Both the github mirror and sf.net git do not have release tags for 2.4.18 so is master the latest release?</p><p>I am building a docker image and it&#039;s usually best to refer to the version tag so a rebuild doesn&#039;t get an unexpected update.<br />(Yes I know it is really mature... just good practice...)</p><p>Maybe a 2.4.18 tag could be added? (github or sf, either is fine)</p><p>Tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2024-09-05T10:40:02Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43366#p43366</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43365#p43365" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>The README.md file has a GitHub Mirror Link:<br />https://github.com/FrontAccountingERP/FA</p></blockquote></div><p>Both the github mirror and sf.net git do not have release tags for 2.4.18 so is master the latest release?</p><p>I am building a docker image and it&#039;s usually best to refer to the version tag so a rebuild doesn&#039;t get an unexpected update.<br />(Yes I know it is really mature... just good practice...)</p><p>Maybe a 2.4.18 tag could be added? (github or sf, either is fine)</p><p>Tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2024-09-05T10:38:49Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43365#p43365</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43363#p43363" />
			<content type="html"><![CDATA[<p>sf.net is the primary repo.<br />github is only a mirror.<br />@joe and @itronics are the main code repo integrators.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2024-08-31T17:23:53Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43363#p43363</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43361#p43361" />
			<content type="html"><![CDATA[<p>I feel I am being dense, but I will ask anyway.</p><p>So if I want to submit updates or bug fixes I should github or git.code.sf.net?</p><p>Tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2024-08-29T09:51:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43361#p43361</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43360#p43360" />
			<content type="html"><![CDATA[<p>The README.md file has a GitHub Mirror Link:<br />https://github.com/FrontAccountingERP/FA</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2024-08-29T06:21:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43360#p43360</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43359#p43359" />
			<content type="html"><![CDATA[<p>I would have but all the webpages point to CVS and sf and the labels are not current</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2024-08-28T10:55:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43359#p43359</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43358#p43358" />
			<content type="html"><![CDATA[<p>You can fork the project on GitHub and make changes as needed.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2024-08-28T10:15:10Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43358#p43358</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43357#p43357" />
			<content type="html"><![CDATA[<p>Is there a repo I can access / clone / help again?</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2024-08-26T11:18:04Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43357#p43357</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43356#p43356" />
			<content type="html"><![CDATA[<p>@joe: is this okay?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2024-08-26T08:01:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43356#p43356</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43355#p43355" />
			<content type="html"><![CDATA[<p>I found the problem</p><div class="codebox"><pre><code>elseif( $Mode == &#039;Delete&#039;)
{
        //the link to delete a selected record was clicked instead of the submit button

        $cancel_delete = 0;
        // PREVENT DELETES IF DEPENDENT RECORDS IN &#039;bank_trans&#039;

        if (key_in_foreign_table($bank_id, &#039;bank_trans&#039;, &#039;bank_act&#039;) || key_in_foreign_table(get_post(&#039;account_code&#039;), &#039;gl_trans&#039;, &#039;account&#039;))
        {
                $cancel_delete = 1;
                display_error(_(&quot;Cannot delete this bank account because transactions have been created using this account.&quot;));
        }
 </code></pre></div><p>get_post(&#039;account_code&#039;) returns 1060 and the bank_id I am trying to delete has account 1063</p><p>Maybe it should get t he account from the bank account info...</p><p>What&#039;s the best way to fix this?</p><p>This worked:<br /></p><div class="codebox"><pre><code>        $myrow = get_bank_account($bank_id);

        if (key_in_foreign_table($bank_id, &#039;bank_trans&#039;, &#039;bank_act&#039;) || key_in_foreign_table($myrow[&#039;account_code&#039;], &#039;gl_trans&#039;, &#039;account&#039;))
 </code></pre></div><p>Tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2024-08-23T11:06:26Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43355#p43355</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43354#p43354" />
			<content type="html"><![CDATA[<p>I am having problems deleting old bank accounts, even some I have not used for many years.</p><p>I have deleted all but the current Fiscal Year.</p><p>In bank inquiry I found opening balances for this year in gl_trans and bank_trans and even with those removed I can&#039;t delete the bank account</p><p>This account uses GL 1063 (and it&#039;s the only bank account using that one)</p><p>I have 4 that all use 1060 which may need more care</p><p>Suggestions?</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2024-08-22T23:38:46Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43354#p43354</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Change of Ownership - Delete past years]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=43349#p43349" />
			<content type="html"><![CDATA[<p>I have been using FA for a business since 2010 and the ownership has changed from a single owner to LLC</p><p>I want to delete the past years and reset the GL accounts to 0</p><p>I assume the first step is to delete all previous years</p><p>Wow that was easier than I thought...<br />I do see some some balances that are wrong, but just deleting the years did most of what I wanted</p><p>Maybe not so much wrong... but I did find I could not delete long gone bank accounts.<br />It seems what FA 2.4.6 I was able to create more than one 1060 bank account...</p><p>I may need advice on how to remove the extra ones</p><p>Tom</p>]]></content>
			<author>
				<name><![CDATA[tom]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=331</uri>
			</author>
			<updated>2024-08-21T10:28:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=43349#p43349</id>
		</entry>
</feed>
