<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Anomaly in Database Entry]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9643&amp;type=atom" />
	<updated>2022-01-21T03:52:23Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9643</id>
		<entry>
			<title type="html"><![CDATA[Re: Anomaly in Database Entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40519#p40519" />
			<content type="html"><![CDATA[<p>Any void attempt shall smartly check if the transaction exists partially in database then it shall execute Void instead of showing the message that this transaction doesn&#039;t exists.</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2022-01-21T03:52:23Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40519#p40519</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Anomaly in Database Entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40517#p40517" />
			<content type="html"><![CDATA[<p>It is likely that many such voids will confuse the admin. A better way is needed. @joe?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2022-01-21T03:32:36Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40517#p40517</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Anomaly in Database Entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40487#p40487" />
			<content type="html"><![CDATA[<p>Anyway I did some modification to ensure force void if such situation occurs.</p><p>In <strong>admin/db/voiding_db.inc</strong> I modified code as below</p><div class="codebox"><pre><code>case ST_BANKDEPOSIT : // it&#039;s a deposit
        case ST_BANKTRANSFER : // it&#039;s a transfer
            if (!check_void_bank_trans($type, $type_no))
                return _(&#039;This transaction cannot be voided because the operation would decrease account balance below allowed limit in some point of account history.&#039;);
                case ST_BANKPAYMENT : // it&#039;s a payment
            if (!exists_bank_trans($type, $type_no) &amp;&amp; !exists_gl_trans($type, $type_no)) //modified by faisal
                return _(&#039;Selected transaction does not exists.&#039;);
            void_bank_trans($type, $type_no);
            break;</code></pre></div><p>Also in <strong>admin/void_transaction.php</strong></p><div class="codebox"><pre><code>    case ST_BANKPAYMENT : // it&#039;s a payment
        case ST_BANKDEPOSIT : // it&#039;s a deposit
        case ST_BANKTRANSFER : // it&#039;s a transfer
            if (!exists_bank_trans($type, $type_no) &amp;&amp; !exists_gl_trans($type, $type_no)) //modified by faisal
                return false;
            break;</code></pre></div>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2022-01-14T14:01:17Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40487#p40487</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Anomaly in Database Entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40483#p40483" />
			<content type="html"><![CDATA[<p>Seems like commit or cancel transaction not&nbsp; called. And it looks like mysql level failure.&nbsp; Would you mind checking your MySQL log for failure. Normally it does&#039;nt happen. It happens when the server reached deadend or deadlock.</p>]]></content>
			<author>
				<name><![CDATA[kvvaradha]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=19348</uri>
			</author>
			<updated>2022-01-13T05:53:42Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40483#p40483</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Anomaly in Database Entry]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=40479#p40479" />
			<content type="html"><![CDATA[<p>Today one of my client did one Bank Payment Entry.<br />The Entry was half passed.<br />It created the GL Transaction but didn&#039;t create the Bank Transaction.<br />Hence the Transaction is reflecting in Ledgers and Journal Inquiry but Not in Others<br />And If We want to void it then it is also not available to void.<br />Attached is the Screen Shot.</p><p>1. Why this happens? It happened one time earlier also with Stock Adjustments.<br />2. How to handle this situation?</p>]]></content>
			<author>
				<name><![CDATA[boxygen]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20175</uri>
			</author>
			<updated>2022-01-12T16:32:14Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=40479#p40479</id>
		</entry>
</feed>
