<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Deleting Fiscal Year - I]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6370</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6370&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Deleting Fiscal Year - I.]]></description>
		<lastBuildDate>Sun, 24 Jul 2016 12:40:19 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Deleting Fiscal Year - I]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25848#p25848</link>
			<description><![CDATA[<p>Yes, I can verify this and both 2.3 and 2.4 will be updated in repo.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sun, 24 Jul 2016 12:40:19 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25848#p25848</guid>
		</item>
		<item>
			<title><![CDATA[Deleting Fiscal Year - I]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=25837#p25837</link>
			<description><![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>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 24 Jul 2016 03:11:31 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=25837#p25837</guid>
		</item>
	</channel>
</rss>
