<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Deleting Fiscal Year - I]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6370&amp;type=atom" />
	<updated>2016-07-24T12:40:19Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=6370</id>
		<entry>
			<title type="html"><![CDATA[Re: Deleting Fiscal Year - I]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25848#p25848" />
			<content type="html"><![CDATA[<p>Yes, I can verify this and both 2.3 and 2.4 will be updated in repo.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2016-07-24T12:40:19Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25848#p25848</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Deleting Fiscal Year - I]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=25837#p25837" />
			<content type="html"><![CDATA[<p>Lines 308 to 315 of the <strong>function delete_this_fiscalyear($selected_id)</strong> in <strong>admin/db/fiscal_years_db.inc</strong>:</p><div class="codebox"><pre><code>        while ($row2 = db_fetch_row($res))
        {
            $sql = &quot;DELETE FROM &quot;.TB_PREF.&quot;wo_issue_items WHERE issue_id = {$row2[0]}&quot;;
            db_query($sql, &quot;Could not delete wo issue items&quot;);
        }    
        delete_attachments_and_comments(ST_MANUISSUE, $row[&#039;id&#039;]);
        $sql = &quot;DELETE FROM &quot;.TB_PREF.&quot;wo_issues WHERE workorder_id = {$row[&#039;id&#039;]}&quot;;
        db_query($sql, &quot;Could not delete wo issues&quot;);</code></pre></div><p>should actually be corrected (translation string) and optimised like the rest to be:</p><div class="codebox"><pre><code>        while ($row2 = db_fetch_row($res))
        {
            $sql = &quot;DELETE FROM &quot;.TB_PREF.&quot;wo_issue_items WHERE issue_id = {$row2[0]}&quot;;
            db_query($sql, &quot;Could not delete wo issue items&quot;);
            $sql = &quot;DELETE FROM &quot;.TB_PREF.&quot;wo_issues WHERE workorder_id = {$row2[0]}&quot;;
            db_query($sql, &quot;Could not delete wo issues&quot;);
            delete_attachments_and_comments(ST_MANUISSUE, {$row2[0]});
        }</code></pre></div><p>Line 303 in the same file:<br /></p><div class="codebox"><pre><code>    $result = db_query($sql, &quot;Could not retrieve supp trans&quot;);</code></pre></div><p>should be:<br /></p><div class="codebox"><pre><code>    $result = db_query($sql, &quot;Could not retrieve workorders&quot;);</code></pre></div><p>Line 326 in the same file:<br /></p><div class="codebox"><pre><code>    $result = db_query($sql, &quot;Could not retrieve supp trans&quot;);</code></pre></div><p>should be:<br /></p><div class="codebox"><pre><code>    $result = db_query($sql, &quot;Could not retrieve stock moves&quot;);</code></pre></div><p>Line 344 in the same file:<br /></p><div class="codebox"><pre><code>    db_query($sql, &quot;Could not delete exchange rates&quot;);</code></pre></div><p>should be:<br /></p><div class="codebox"><pre><code>    db_query($sql, &quot;Could not delete budget transactions&quot;);</code></pre></div><p>@joe: please verify and commit.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2016-07-24T03:11:31Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=25837#p25837</id>
		</entry>
</feed>
