<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Fiscal year deletion not possible]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1433&amp;type=atom" />
	<updated>2010-07-08T11:53:27Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1433</id>
		<entry>
			<title type="html"><![CDATA[Fiscal year deletion not possible]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=6405#p6405" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[huotg01]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=983</uri>
			</author>
			<updated>2010-07-08T11:53:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=6405#p6405</id>
		</entry>
</feed>
