<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Void a transaction gives error message]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9664&amp;type=atom" />
	<updated>2022-06-23T08:02:44Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9664</id>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41206#p41206" />
			<content type="html"><![CDATA[<p>This has been fixed and committed to stable repo. A fixed file can be downloaded <a href="https://sourceforge.net/p/frontaccounting/git/ci/master/tree/includes/db/audit_trail_db.inc">here</a>.</p><p>joe.</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2022-06-23T08:02:44Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41206#p41206</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=41196#p41196" />
			<content type="html"><![CDATA[<p>Did you find any workaround other than downgrading php to 7.4 ?</p>]]></content>
			<author>
				<name><![CDATA[istrice]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=46676</uri>
			</author>
			<updated>2022-06-22T19:59:24Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=41196#p41196</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40589#p40589" />
			<content type="html"><![CDATA[<p>Submitted to mantis bug tracker.</p><p>http://mantis.frontaccounting.com./view.php?id=5571</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2022-01-30T03:36:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40589#p40589</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40587#p40587" />
			<content type="html"><![CDATA[<p>Confirmed, yes. Switching back to php7.4 enables journals edition<br />I am using Ubuntu Server v20.04, Apache2 and php8.1</p>]]></content>
			<author>
				<name><![CDATA[albertolima]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=1640</uri>
			</author>
			<updated>2022-01-30T01:20:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40587#p40587</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40582#p40582" />
			<content type="html"><![CDATA[<p>It appears the problem is the current version is not compatible with PHP 8.0.&nbsp; &nbsp; When I switched the PHP back to 7.0 from 8.0, the problem went away, and I was able to void transactions without the error message.&nbsp; So there is a problem with compatibility with PHP 8.0</p>]]></content>
			<author>
				<name><![CDATA[corporatei]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=38179</uri>
			</author>
			<updated>2022-01-27T19:31:30Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40582#p40582</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40581#p40581" />
			<content type="html"><![CDATA[<p>I checked tmp/errors.log and I did not see anything out of the ordinary.</p>]]></content>
			<author>
				<name><![CDATA[corporatei]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=38179</uri>
			</author>
			<updated>2022-01-27T19:22:08Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40581#p40581</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40580#p40580" />
			<content type="html"><![CDATA[<p>On the debug I see:<br />SET sql_mode = &#039;STRICT_ALL_TABLES&#039;<br />SELECT name, value FROM fly2_sys_prefs<br />SELECT value FROM fly2_sys_prefs WHERE name=&#039;version_id&#039;<br />SELECT name, value FROM fly2_sys_prefs<br />SELECT * FROM fly2_fiscal_year WHERE &#039;2022-01-27&#039; &gt;= begin AND &#039;2022-01-27&#039; &lt;= end AND closed=0<br />SELECT COUNT(*) FROM (SELECT t.trans_no as trans_no ,t.reference as ref ,t.tran_date as trans_date, t.type as type FROM fly2_journal t LEFT JOIN fly2_voided v ON t.trans_no=v.id AND v.type=&#039;0&#039; WHERE ISNULL(v.`memo_`) AND t.trans_no &gt;= &#039;1&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND&nbsp; t.trans_no &lt;= &#039;999999&#039; AND t.`type` = &#039;0&#039; GROUP BY t.type, t.trans_no ORDER BY t.trans_no DESC) tmp_count<br />SELECT t.trans_no as trans_no ,t.reference as ref ,t.tran_date as trans_date, t.type as type FROM fly2_journal t LEFT JOIN fly2_voided v ON t.trans_no=v.id AND v.type=&#039;0&#039;&nbsp; WHERE (ISNULL(v.`memo_`) AND t.trans_no &gt;= &#039;1&#039;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; AND&nbsp; t.trans_no &lt;= &#039;999999&#039; AND t.`type` = &#039;0&#039;) GROUP BY t.type, t.trans_no ORDER BY t.trans_no DESC LIMIT 0, 10<br />SELECT * FROM fly2_fiscal_year WHERE &#039;2022-12-31&#039; &gt;= begin AND &#039;2022-12-31&#039; &lt;= end AND closed=0<br />SELECT * FROM fly2_fiscal_year WHERE &#039;2021-12-31&#039; &gt;= begin AND &#039;2021-12-31&#039; &lt;= end AND closed=0</p>]]></content>
			<author>
				<name><![CDATA[corporatei]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=38179</uri>
			</author>
			<updated>2022-01-27T19:16:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40580#p40580</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40579#p40579" />
			<content type="html"><![CDATA[<p>I wentn into the phpmyadmin, under sys_prefs table, on the row:<br />&nbsp; &nbsp; <br />gl_closing_date<br />setup.closing_date<br />date<br />8<br />2020-12-31</p><p>I changed it to 2020-12-31.&nbsp; Yet when I tried to void even a 2021 or 2022 transaction, still gives the error message.</p>]]></content>
			<author>
				<name><![CDATA[corporatei]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=38179</uri>
			</author>
			<updated>2022-01-27T19:11:33Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40579#p40579</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40578#p40578" />
			<content type="html"><![CDATA[<p>I have tried to closed the 2021 and 2022 fiscal year, and reopen back up, and still have the same problem.<br />This time, when I tried to void a transaction, anything in 2021 becomes N/A.</p>]]></content>
			<author>
				<name><![CDATA[corporatei]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=38179</uri>
			</author>
			<updated>2022-01-27T19:08:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40578#p40578</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40576#p40576" />
			<content type="html"><![CDATA[<p>You have not checked the closing&nbsp; GL Transaction.&nbsp; Thats the only solution&nbsp; for this situation. If you want&nbsp; to do it manually. Open sys_prefs&nbsp; table and find gl_close_date and change the date to last year close date and try it. It will&nbsp; work for you.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2022-01-27T11:28:59Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40576#p40576</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40575#p40575" />
			<content type="html"><![CDATA[<p>Anything in the error log? Also what I meant you should close and reopen the current fiscal year (2022).</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2022-01-27T06:15:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40575#p40575</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40574#p40574" />
			<content type="html"><![CDATA[<p>I tried the above by closing the year and re-opening the year.&nbsp; It still does not work.&nbsp; I also tried to apply the close GL transaction permission inside the System&#039;s Administrator&#039;s profile.&nbsp; It still does not work.</p><p>Even if I tried to void a transaction this year 2022, it won&#039;t let me do it.&nbsp; 2022 is my current fiscal year.&nbsp; &nbsp;It still gives error message &quot;The selected transaction was closed for edition and cannot be voided.&quot;.&nbsp; Is this a problem after upgrading to FrontAccounting 2.4.11 ?&nbsp; I don&#039;t see that as an issue in the past versions?</p>]]></content>
			<author>
				<name><![CDATA[corporatei]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=38179</uri>
			</author>
			<updated>2022-01-27T06:09:01Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40574#p40574</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40573#p40573" />
			<content type="html"><![CDATA[<p>Yes of course..</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2022-01-27T02:38:22Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40573#p40573</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40571#p40571" />
			<content type="html"><![CDATA[<div class="quotebox"><cite>rafat wrote:</cite><blockquote><p>See Warning:<br />Try this and use with your own discretion.<br />Close the year and reopen it again. You should be able to void the TXN.<br />Warning: Two GL Accounts are affected when one closes a fiscal year 3590-Retained Earnings and 9990-Profit/Loss <br />You might need to void these two automatically updated GL transactions when you close the fiscal year.<br />Try it with a staging system before the live system.</p></blockquote></div><p>Should I back up the database first, then try this, and if something goes wrong I restore database?</p>]]></content>
			<author>
				<name><![CDATA[corporatei]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=38179</uri>
			</author>
			<updated>2022-01-26T19:25:29Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40571#p40571</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Void a transaction gives error message]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40566#p40566" />
			<content type="html"><![CDATA[<p>See Warning:<br />Try this and use with your own discretion.<br />Close the year and reopen it again. You should be able to void the TXN.<br />Warning: Two GL Accounts are affected when one closes a fiscal year 3590-Retained Earnings and 9990-Profit/Loss <br />You might need to void these two automatically updated GL transactions when you close the fiscal year.<br />Try it with a staging system before the live system.</p>]]></content>
			<author>
				<name><![CDATA[rafat]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=41964</uri>
			</author>
			<updated>2022-01-26T12:51:27Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40566#p40566</id>
		</entry>
</feed>
