<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Function for even out rounding problems]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=8930</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=8930&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Function for even out rounding problems.]]></description>
		<lastBuildDate>Mon, 31 Aug 2020 14:37:45 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Function for even out rounding problems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38237#p38237</link>
			<description><![CDATA[<p>Check if some rounding off error got missed out in the computation sequence first. If such occurrences are few and far between, make a compensating Journal Entry for the adjustment each time for now.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 31 Aug 2020 14:37:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38237#p38237</guid>
		</item>
		<item>
			<title><![CDATA[Re: Function for even out rounding problems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38232#p38232</link>
			<description><![CDATA[<div class="quotebox"><cite>apmuthu wrote:</cite><blockquote><p>If there is a non-exchange rate related error that arises from just tax computation, which account do you want the error to get into or <br />how do we balance it?</p></blockquote></div><p>We want it to go into some &quot;tax variance account&quot; which we can define in the system.</p>]]></description>
			<author><![CDATA[null@example.com (djgayasri)]]></author>
			<pubDate>Mon, 31 Aug 2020 10:50:27 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38232#p38232</guid>
		</item>
		<item>
			<title><![CDATA[Re: Function for even out rounding problems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38157#p38157</link>
			<description><![CDATA[<p>Try to change the <em>php.ini</em> value for <strong>precision</strong> from the default 14 to 17 and restart your webserver and test it.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 25 Aug 2020 16:43:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38157#p38157</guid>
		</item>
		<item>
			<title><![CDATA[Re: Function for even out rounding problems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38108#p38108</link>
			<description><![CDATA[<p>Well, I thought this was taken care off. But if this is a huge problem, I would have to look closer into that.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Sat, 22 Aug 2020 00:46:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38108#p38108</guid>
		</item>
		<item>
			<title><![CDATA[Re: Function for even out rounding problems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38104#p38104</link>
			<description><![CDATA[<p>If there is a non-exchange rate related error that arises from just tax computation, which account do you want the error to get into or how do we balance it?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Fri, 21 Aug 2020 17:21:59 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38104#p38104</guid>
		</item>
		<item>
			<title><![CDATA[Re: Function for even out rounding problems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38099#p38099</link>
			<description><![CDATA[<p>@apmuthu: What do you mean account? This happened when we enter the customer invoice. All services are billing on local currency.</p>]]></description>
			<author><![CDATA[null@example.com (djgayasri)]]></author>
			<pubDate>Fri, 21 Aug 2020 04:41:52 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38099#p38099</guid>
		</item>
		<item>
			<title><![CDATA[Re: Function for even out rounding problems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38086#p38086</link>
			<description><![CDATA[<p>@djgatasri: Which account do you want this error to get into (or split into) especially when tax can be computed with an exchange rate as well.</p><p>@joe: any thoughts?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 20 Aug 2020 18:37:23 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38086#p38086</guid>
		</item>
		<item>
			<title><![CDATA[Function for even out rounding problems]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=38057#p38057</link>
			<description><![CDATA[<p>I need a clarification of the following function.</p><div class="codebox"><pre><code>function add_gl_balance($type, $trans_id, $date_, $amount, $person_type_id=null, $person_id=null)
{
    $amount = round2($amount, user_price_dec());

    if (floatcmp($amount, 0))
    {
        error_log(sprintf( _(&quot;Rounding error %s encountered for trans_type:%s,trans_no:%s&quot;), $amount, $type, $trans_id));
        return add_gl_trans($type, $trans_id, $date_, get_company_pref(&#039;exchange_diff_act&#039;), 0, 0, &quot;&quot;,
            $amount, null, $person_type_id, $person_id, &quot;The balanced GL transaction could not be inserted&quot;);
    } else
        return 0;
}</code></pre></div><p>This function is placed on the file <strong>gl/includes/db/gl_db_trans.inc</strong>. And it is for even out the rounding problems.</p><p>When round off error occurred due to tax calculation on the sales invoice, that error amount will pass to this function. </p><p>So then rounding off error due to tax calculation will be going to <strong>exchange_diff_act</strong>. That is actually not an exchange rate given at all. </p><p>Is there any suggestion to handle those kinds of rounding problems.</p>]]></description>
			<author><![CDATA[null@example.com (djgayasri)]]></author>
			<pubDate>Mon, 17 Aug 2020 09:07:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=38057#p38057</guid>
		</item>
	</channel>
</rss>
