<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Debit Credit Error on Trial Balance]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8761</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8761&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Debit Credit Error on Trial Balance.]]></description>
		<lastBuildDate>Sun, 06 Sep 2020 09:43:21 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38289#p38289</link>
			<description><![CDATA[<div class="quotebox"><cite>anoopmb wrote:</cite><blockquote><p>Hi, </p><p>I think <a href="https://github.com/anoopmb/FAApprovalSystem">Approval System for GL Transactions</a> should work fine here. Refer <a href="https://frontaccounting.com/punbb/viewtopic.php?id=7525">Forum Post</a>.</p><p>So system administrator/Accountant&nbsp; can review and approve it.</p></blockquote></div><p>Hi anoobpmb, I just read this thread and I agree. It is possible and often necessary to credit an account with a normal debit balance and vice versa. Your solution is the most ideal, as is the script suggested by kvvaradha and the comments of joe and detkenn.</p><p>I look forward to receiving the files for Version 2.4.8 of your Approval System for GL Transactions.</p><p>Celito</p>]]></description>
			<author><![CDATA[null@example.com (ccmacachor)]]></author>
			<pubDate>Sun, 06 Sep 2020 09:43:21 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38289#p38289</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37540#p37540</link>
			<description><![CDATA[<p>@joe can this be included into the core with a Company Setup flag in sysprefs table?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 17 May 2020 16:49:49 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37540#p37540</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37537#p37537</link>
			<description><![CDATA[<p>@anoopmb, you are right, its useful module here. But where the company has less people and try that. its double work for them to do it. So the first solution, we applied there is for the small companies or those who handles FA functions totally.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sat, 16 May 2020 17:44:12 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37537#p37537</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37535#p37535</link>
			<description><![CDATA[<p>Hi, </p><p>I think <a href="https://github.com/anoopmb/FAApprovalSystem">Approval System for GL Transactions</a> should work fine here. Refer <a href="https://frontaccounting.com/punbb/viewtopic.php?id=7525">Forum Post</a>.</p><p>So system administrator/Accountant&nbsp; can review and approve it.</p>]]></description>
			<author><![CDATA[null@example.com (anoopmb)]]></author>
			<pubDate>Sat, 16 May 2020 14:28:11 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37535#p37535</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37499#p37499</link>
			<description><![CDATA[<p>Petty cash is treated like a bank account in FA. That is why you will find it in the <strong>bank_accounts</strong> table (check using the standard Chart of Accounts with demo data).</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 14 May 2020 09:00:18 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37499#p37499</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37471#p37471</link>
			<description><![CDATA[<p>okay, but how do you record for example a payment of a small amount like 2 dollars? Are you writing a check?</p><p>I believe the petty cash is not a bank account right? It&#039;s money kept at hand by the petty cashier I believe for quick transactions that do not require writing of a check and making small payments like perdiems, transportation, fuel etc..</p><p>Regards</p>]]></description>
			<author><![CDATA[null@example.com (cedricktshiyoyo)]]></author>
			<pubDate>Mon, 11 May 2020 16:24:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37471#p37471</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37469#p37469</link>
			<description><![CDATA[<p>All money is belonging to a bank account. Even small cash accounts. This is to keep it safe. When operating where money is included, you can better use the deposit or payment form.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 11 May 2020 16:00:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37469#p37469</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37467#p37467</link>
			<description><![CDATA[<p>@detkenn I don&#039;t think using payment is good idea, I don&#039;t know if you have noticed, <br />when you make an entry using payment, only bank accounts are listed, there is no other accounts. <br />Maybe our seniors can help also clarify for us, why is that so?<br />I believe we are all here to contribute with ideas not only coding but also provide our experts like @joe with our insights to make FA the best of the best.</p><p>With that in mind, I am bringing this illustration;</p><p>Not all payments are done through bank transactions right? Assuming I need to make a payment of $2, am I going to write a check for that amount?<br />The petty cashier is often given a certain amount of money at hand to pay for small transactions, now when He you process a payment, the petty cash must be credited and the other account debited.</p><p>Is there a possibility to allow a cash account (WHICH IS NOT BANK ACCOUNT) (if not all asset accounts) to appear in the list when processing a payment? @joe</p><p>Regards to all</p><p>Cedrick</p>]]></description>
			<author><![CDATA[null@example.com (cedricktshiyoyo)]]></author>
			<pubDate>Mon, 11 May 2020 15:02:05 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37467#p37467</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37466#p37466</link>
			<description><![CDATA[<p>As some of you guys mention, the Gl journal entries are for direct entries without any restrictions. And it should be so in My opinion.<br />Please use the more easy routines for transactions if you are unsure.</p><p>Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Mon, 11 May 2020 14:33:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37466#p37466</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37463#p37463</link>
			<description><![CDATA[<p>In that case, I agree with you. <br />@Joe should consider integrating it to the core.</p>]]></description>
			<author><![CDATA[null@example.com (detkenn)]]></author>
			<pubDate>Mon, 11 May 2020 11:50:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37463#p37463</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37460#p37460</link>
			<description><![CDATA[<p>@detkenn - not everyone is expert in accounting.&nbsp; Sometimes a learning accountant,&nbsp; like new joiny or new person, might make mistake in account selection. And sometimes by mistake. We might choose wrong account and input it by accidently, in this cases the careless mistake can be highlighted. Most of accounting software&#039;s&nbsp; also have this feature to check before make entries. </p><p>Hope this feature would be helpful for others.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sun, 10 May 2020 18:31:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37460#p37460</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37459#p37459</link>
			<description><![CDATA[<p>In my opinion, Journal Entries are meant to affect selected account on either side of debit or credit. Should any side be pre-assumed as default for certain account types?.<br />You can use Payments module to post expenses and you wont have to worry about wrong posting.</p>]]></description>
			<author><![CDATA[null@example.com (detkenn)]]></author>
			<pubDate>Sun, 10 May 2020 16:00:06 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37459#p37459</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37458#p37458</link>
			<description><![CDATA[<div class="quotebox"><cite>cedricktshiyoyo wrote:</cite><blockquote><p>A thousand times thanks brother @kvvaradha . The code worked perfectly. <br />This was exactly what I needed. I will modify it little bit with your permission for other accounts too.</p><p>Big thanks again!!!</p></blockquote></div><p>That&#039;s good to hear it. </p><p> If you modify the code, I feel it&#039;s very much usefull to FA&nbsp; community. So provide it for us to update FA&nbsp; core.</p><p>@Joe,&nbsp; can you check this to update it to core. May be its useful feature for others.</p>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sun, 10 May 2020 11:59:56 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37458#p37458</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37457#p37457</link>
			<description><![CDATA[<p>A thousand times thanks brother @kvvaradha . The code worked perfectly. <br />This was exactly what I needed. I will modify it little bit with your permission for other accounts too.</p><p>Big thanks again!!!</p>]]></description>
			<author><![CDATA[null@example.com (cedricktshiyoyo)]]></author>
			<pubDate>Sun, 10 May 2020 11:26:16 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37457#p37457</guid>
		</item>
		<item>
			<title><![CDATA[Re: Debit Credit Error on Trial Balance]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=37453#p37453</link>
			<description><![CDATA[<p>Your second option is fine I feel. Because sometimes. People may make reverse entries once they made mistake in another form. So I think the warning would be fine. At the same time even if they post it with warning. It should work and submit the journal entry.</p><p>Here is a screenshot for reference what i talked. And code i modified in gl_journal.php</p><div class="codebox"><pre><code>// New function to check it 
function check_account_selection($code, $amount){
    $sql = &quot;SELECT ms.*, cl.class_name, cl.ctype FROM &quot;.TB_PREF.&quot;chart_master AS ms LEFT JOIN &quot;.TB_PREF.&quot;chart_types AS tp ON ms.account_type= tp.id LEFT JOIN &quot;.TB_PREF.&quot;chart_class AS cl ON cl.cid = tp.class_id WHERE account_code= &quot;.db_escape($code);
    $res = db_query($sql, &quot;Cant get the chart class selection&quot;);
    if(db_num_rows($res) == 1 ){
        if($row = db_fetch($res)){
            if($row[&#039;ctype&#039;] == CL_EXPENSE &amp;&amp; $amount &gt; 0)
                display_warning(_(&quot;You are entered the Expense under the debit side&quot;));
            if($row[&#039;ctype&#039;] == CL_ASSETS  &amp;&amp; $amount &lt; 0 )
                display_warning(_(&quot;You are entered the Asset in credit side&quot;));
        }
    }

}
function handle_new_item()
{
    if (!check_item_data())
        return;


    if (input_num(&#039;AmountDebit&#039;) &gt; 0)
        $amount = input_num(&#039;AmountDebit&#039;);
    else
        $amount = -input_num(&#039;AmountCredit&#039;);
    
    check_account_selection(get_post(&#039;code_id&#039;), $amount);  // This is new line in existing code
    

    $_SESSION[&#039;journal_items&#039;]-&gt;add_gl_item($_POST[&#039;code_id&#039;], $_POST[&#039;dimension_id&#039;],
        $_POST[&#039;dimension2_id&#039;], $amount, $_POST[&#039;LineMemo&#039;], &#039;&#039;, get_post(&#039;person_id&#039;));
      unset($_SESSION[&#039;journal_items&#039;]-&gt;tax_info);
    line_start_focus();
}</code></pre></div><p>abd for updating of exiting entry.<br /></p><div class="codebox"><pre><code> 
function handle_update_item()
{
    if($_POST[&#039;UpdateItem&#039;] != &quot;&quot; &amp;&amp; check_item_data())
    {
        if (input_num(&#039;AmountDebit&#039;) &gt; 0)
            $amount = input_num(&#039;AmountDebit&#039;);
        else
            $amount = -input_num(&#039;AmountCredit&#039;);


        check_account_selection(get_post(&#039;code_id&#039;), $amount); // This is new line in existing code


        $_SESSION[&#039;journal_items&#039;]-&gt;update_gl_item($_POST[&#039;Index&#039;], $_POST[&#039;code_id&#039;], 
            $_POST[&#039;dimension_id&#039;], $_POST[&#039;dimension2_id&#039;], $amount, $_POST[&#039;LineMemo&#039;], &#039;&#039;, get_post(&#039;person_id&#039;));
        unset($_SESSION[&#039;journal_items&#039;]-&gt;tax_info);
        line_start_focus();
    }
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (kvvaradha)]]></author>
			<pubDate>Sat, 09 May 2020 00:08:15 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=37453#p37453</guid>
		</item>
	</channel>
</rss>
