<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — The entered transaction does not exist or cannot be voided]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=4472</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4472&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in The entered transaction does not exist or cannot be voided.]]></description>
		<lastBuildDate>Mon, 28 Oct 2013 09:24:54 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18237#p18237</link>
			<description><![CDATA[<p>Cash Account should always be in debt to every account who provided it the cash in the first place. Hence in FA, is debit balance shown as positive?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 28 Oct 2013 09:24:54 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18237#p18237</guid>
		</item>
		<item>
			<title><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18175#p18175</link>
			<description><![CDATA[<p>Cash account should never have negative balance, so if it has, you will have this kind of errors.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Mon, 21 Oct 2013 12:42:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18175#p18175</guid>
		</item>
		<item>
			<title><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18173#p18173</link>
			<description><![CDATA[<div class="quotebox"><cite>itronics wrote:</cite><blockquote><p>Regarding the thread subject, I guess voiding the bank transaction would result in negative balance on Petty Cash account in some&nbsp; point of account history, so voiding is forbidden.<br />Janusz</p></blockquote></div><p>I think your guessing is not correct, because my Petty Cash account was in negative balance, and lately I correct the balance to positive then I delete the transaction (which was in the negative history) with no errors.</p><p>Adel</p>]]></description>
			<author><![CDATA[null@example.com (dedode)]]></author>
			<pubDate>Mon, 21 Oct 2013 12:13:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18173#p18173</guid>
		</item>
		<item>
			<title><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18171#p18171</link>
			<description><![CDATA[<p>Thanks apmuthu and Janusz for your suggestions.</p><p>I was trying to void the transaction through (Delivery Note)&#039;s type and the message was appeared as:<br /></p><div class="quotebox"><blockquote><p>The entered transaction does not exist or cannot be voided</p></blockquote></div><p>But, after I play around I try to void it through (Sales Invoice)&#039;s type and it&#039;s DONE!<br />both transactions had been deleted.</p><p>The problem was from me and the message:<br /></p><div class="quotebox"><blockquote><p>The entered transaction does not exist or cannot be voided</p></blockquote></div><p>which didn&#039;t lead me to the real mistake.</p><p>regards</p><p>Adel</p>]]></description>
			<author><![CDATA[null@example.com (dedode)]]></author>
			<pubDate>Mon, 21 Oct 2013 12:08:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18171#p18171</guid>
		</item>
		<item>
			<title><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18170#p18170</link>
			<description><![CDATA[<p>Regarding the thread subject, I guess voiding the bank transaction would result in negative balance on Petty Cash account in some&nbsp; point of account history, so voiding is forbidden.<br />Janusz</p>]]></description>
			<author><![CDATA[null@example.com (itronics)]]></author>
			<pubDate>Mon, 21 Oct 2013 11:56:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18170#p18170</guid>
		</item>
		<item>
			<title><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18164#p18164</link>
			<description><![CDATA[<p>Thanks Janusz for the clarification:<br /></p><div class="quotebox"><blockquote><p>Maybe the temporary variable name $void_entry is misleading, but the<br />codelogic is right. The voiding action is abandoned if the selected<br />transaction has been voided before.</p><p>Janusz</p></blockquote></div>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 20 Oct 2013 21:44:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18164#p18164</guid>
		</item>
		<item>
			<title><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18163#p18163</link>
			<description><![CDATA[<p>In the file <strong>admin/void_transaction.php</strong>, lines 271-302 are:<br /></p><div class="codebox"><pre><code>function handle_void_transaction()
{
    if (check_valid_entries()==true) 
    {
        $void_entry = get_voided_entry($_POST[&#039;filterType&#039;], $_POST[&#039;trans_no&#039;]);
        if ($void_entry != null) 
        {
            display_error(_(&quot;The selected transaction has already been voided.&quot;), true);
            unset($_POST[&#039;trans_no&#039;]);
            unset($_POST[&#039;memo_&#039;]);
            unset($_POST[&#039;date_&#039;]);
            set_focus(&#039;trans_no&#039;);
            return;
        }

        $ret = void_transaction($_POST[&#039;filterType&#039;], $_POST[&#039;trans_no&#039;],
            $_POST[&#039;date_&#039;], $_POST[&#039;memo_&#039;]);

        if ($ret) 
        {
            display_notification_centered(_(&quot;Selected transaction has been voided.&quot;));
            unset($_POST[&#039;trans_no&#039;]);
            unset($_POST[&#039;memo_&#039;]);
            unset($_POST[&#039;date_&#039;]);
        }
        else {
            display_error(_(&quot;The entered transaction does not exist or cannot be voided.&quot;));
            set_focus(&#039;trans_no&#039;);

        }
    }
}</code></pre></div><p>Shouldn&#039;t the second <strong>if</strong> condition have it&#039;s logic inverted?<br />The line above:<br /></p><div class="codebox"><pre><code>        if ($void_entry != null) </code></pre></div><p>will probably need to become<br /></p><div class="codebox"><pre><code>        if ($void_entry == null) </code></pre></div><p>This should actually mean that unless there are entries to be voided, do not attempt to void any (since none exist).</p><p>However, in <strong>@dedode</strong>&#039;s case, he must find out why a &quot;missing&quot; transaction was sought to be voided in the first place! Possibly attempting to void an already voided transaction - using the back button in the browser and re-submitting it or some browser cache issue.......</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 20 Oct 2013 03:03:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18163#p18163</guid>
		</item>
		<item>
			<title><![CDATA[The entered transaction does not exist or cannot be voided]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=18162#p18162</link>
			<description><![CDATA[<p>Hi</p><p>When I try to void a transaction I&#039;ve shown this message:<br /></p><div class="quotebox"><blockquote><p>The entered transaction does not exist or cannot be voided</p></blockquote></div><p> </p><p>I have two accounts:<br />1- 1065 Petty Cash<br />2- 1060 Checking Account</p><p>I am sure that their bank balance is positive not negative.</p><p>So what&#039;s wrong?</p><p>I&#039;ve seen this info after I set $go_debug in config.php file to 2, while 1 didn&#039;t show any extra info!</p><div class="quotebox"><blockquote><p>The entered transaction does not exist or cannot be voided.<br />/includes/ui/ui_msgs.inc:14: &nbsp; &nbsp; trigger_error(&#039;The entered transaction does not exist or cannot be voided.&#039;,&#039;256&#039;)<br />/admin/void_transaction.php:297: &nbsp; &nbsp; display_error(&#039;The entered transaction does not exist or cannot be voided.&#039;)<br />/admin/void_transaction.php:322: &nbsp; &nbsp; handle_void_transaction()</p></blockquote></div><p> </p><br /><p>regards</p>]]></description>
			<author><![CDATA[null@example.com (dedode)]]></author>
			<pubDate>Sat, 19 Oct 2013 19:40:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=18162#p18162</guid>
		</item>
	</channel>
</rss>
