<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Fiscal year deletion not possible]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=1433</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1433&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Fiscal year deletion not possible.]]></description>
		<lastBuildDate>Thu, 08 Jul 2010 11:53:27 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Fiscal year deletion not possible]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=6405#p6405</link>
			<description><![CDATA[<p>When trying to help on thread 1432, I noticed that for mudassir and I, it was not possible to delete a newly created fiscal year.</p><p>We have the message: &quot;Cannot delete this fiscal year because thera are fiscal years before.&quot;</p><p>In my case, just to check, I just created a new fiscal year, and immediately tried to delete it, but got the upper message.</p><p>This message is triggered by the following piece of code:<br /></p><div class="codebox"><pre><code>function check_can_delete($selected_id)
{
    $myrow = get_fiscalyear($selected_id);
    // PREVENT DELETES IF DEPENDENT RECORDS IN gl_trans
    if (check_years_before(sql2date($myrow[&#039;begin&#039;]), true))
    {
        display_error(_(&quot;Cannot delete this fiscal year because thera are fiscal years before.&quot;));
        return false;
    }</code></pre></div><p>Why is it impossible to delete a just created fiscal year ?</p><p>Thanks</p><p>Gaston</p>]]></description>
			<author><![CDATA[null@example.com (huotg01)]]></author>
			<pubDate>Thu, 08 Jul 2010 11:53:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=6405#p6405</guid>
		</item>
	</channel>
</rss>
