<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — 0005724: Bug In Date Editing in Latest FA]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=10402&amp;type=atom" />
	<updated>2023-11-18T20:45:47Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=10402</id>
		<entry>
			<title type="html"><![CDATA[Re: 0005724: Bug In Date Editing in Latest FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42706#p42706" />
			<content type="html"><![CDATA[<p>This occurs due to lines 28-32 in <strong>includes/db/audit_trail_db.inc</strong>:<br /></p><div class="codebox"><pre><code>    $sql = &quot;UPDATE &quot;.TB_PREF.&quot;audit_trail audit LEFT JOIN &quot;.TB_PREF.&quot;fiscal_year year ON year.begin&lt;=&#039;$date&#039; AND year.end&gt;=&#039;$date&#039;
        SET audit.gl_seq = IF(audit.id=&quot;.db_insert_id().&quot;, 0, NULL),&quot;
        .&quot;audit.fiscal_year=year.id&quot;
        . &quot; WHERE type=&quot;.db_escape($trans_type).&quot; AND trans_no=&quot;
        . db_escape($trans_no);</code></pre></div><p>If there is no valid matching value of the field <strong>fiscal_year</strong> as happens when no records for fiscal year in question, this will error out.</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2023-11-18T20:45:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42706#p42706</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0005724: Bug In Date Editing in Latest FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42684#p42684" />
			<content type="html"><![CDATA[<p>This bug was reported on Mantis as<br />0005724: Bug In Date Editing in Latest FA</p><p>I cannot reproduce this error. And this has been specified on the Mantis bug report.</p><p>Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2023-11-10T08:07:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42684#p42684</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0005724: Bug In Date Editing in Latest FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42673#p42673" />
			<content type="html"><![CDATA[<p>@rafat&nbsp; Thank you so much . Worked .<br />problem solved .</p>]]></content>
			<author>
				<name><![CDATA[yubrajkafle99]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41884</uri>
			</author>
			<updated>2023-11-08T12:28:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42673#p42673</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0005724: Bug In Date Editing in Latest FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42672#p42672" />
			<content type="html"><![CDATA[<p>Create a 2023 fiscal year and try again. No need for it to be the current. Try with active and not active 2023.<br />Good luck.</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2023-11-08T12:24:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42672#p42672</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0005724: Bug In Date Editing in Latest FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42671#p42671" />
			<content type="html"><![CDATA[<p>@rafat</p><p>I am getting this error <br />DATABASE ERROR : Cannot update audit gl_seq<br />error code : 1048<br />error message : Column &#039;fiscal_year&#039; cannot be null<br />sql that failed was : UPDATE 0_audit_trail audit LEFT JOIN 0_fiscal_year year ON year.begin&lt;=&#039;2023-11-08&#039; AND year.end&gt;=&#039;2023-11-08&#039; SET audit.gl_seq = IF(audit.id=6, 0, NULL),audit.fiscal_year=year.id WHERE type=&#039;0&#039; AND trans_no=&#039;2&#039;</p><p>my fiscal years Starts 2022.01.01<br />and Ends : 2022.12.31</p><br /><p>i had posted the journal Entry on Date 2022.12.10 and i have got this error when i try to update my Journal Entry Date to 2022.12.11</p>]]></content>
			<author>
				<name><![CDATA[yubrajkafle99]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41884</uri>
			</author>
			<updated>2023-11-08T07:17:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42671#p42671</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0005724: Bug In Date Editing in Latest FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42670#p42670" />
			<content type="html"><![CDATA[<p>@yubrajkafle99</p><p>You need to describe in details what you did to reach this stage. The error clearly mentions a problem in fiscal years for the date entered. So please list your fiscal years opened/closed and your current fiscal year. and to what date you are changing the transaction date.</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2023-11-08T06:07:48Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42670#p42670</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: 0005724: Bug In Date Editing in Latest FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42669#p42669" />
			<content type="html"><![CDATA[<p>@joe<br />$kvvaradha</p><p>please check it</p>]]></content>
			<author>
				<name><![CDATA[yubrajkafle99]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41884</uri>
			</author>
			<updated>2023-11-08T06:01:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42669#p42669</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[0005724: Bug In Date Editing in Latest FA]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=42668#p42668" />
			<content type="html"><![CDATA[<p>Dear Team,</p><p>I would like to bring to your attention that I have identified a bug in the latest version of FA.</p><p>When attempting to edit a transaction and modify the date, we encounter an issue where we are unable to save the transaction. An error message is displayed, which reads as follows:</p><p>&quot;DATABASE ERROR: Cannot update audit gl_seq<br />Error code: 1048&quot;</p><p>I have also confirmed that this issue persists in the latest FA release.</p><p>I would like to emphasize the urgency of addressing this matter promptly. Please prioritize and resolve this bug as soon as possible.</p><p>Thank you for your attention to this issue.</p><br /><p>Step to Reproduce :<br />&nbsp; &nbsp; Enable Debug Mode<br />Enter the Transaction and submit<br />reopen the same transaction for editing<br />change the Date<br />and Save .</p><p>it can be easily Reprodue in Journal and other transaction</p>]]></content>
			<author>
				<name><![CDATA[yubrajkafle99]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41884</uri>
			</author>
			<updated>2023-11-08T05:54:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=42668#p42668</id>
		</entry>
</feed>
