<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — The entered transaction does not exist or cannot be voided]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=4472&amp;type=atom" />
	<updated>2013-10-28T09:24:54Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=4472</id>
		<entry>
			<title type="html"><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18237#p18237" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-10-28T09:24:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18237#p18237</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18175#p18175" />
			<content type="html"><![CDATA[<p>Cash account should never have negative balance, so if it has, you will have this kind of errors.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-10-21T12:42:56Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18175#p18175</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18173#p18173" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dedode]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18371</uri>
			</author>
			<updated>2013-10-21T12:13:12Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18173#p18173</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18171#p18171" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dedode]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18371</uri>
			</author>
			<updated>2013-10-21T12:08:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18171#p18171</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18170#p18170" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2013-10-21T11:56:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18170#p18170</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18164#p18164" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-10-20T21:44:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18164#p18164</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: The entered transaction does not exist or cannot be voided]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18163#p18163" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2013-10-20T03:03:11Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18163#p18163</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[The entered transaction does not exist or cannot be voided]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=18162#p18162" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[dedode]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=18371</uri>
			</author>
			<updated>2013-10-19T19:40:47Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=18162#p18162</id>
		</entry>
</feed>
