<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Supplier Payment Entry(Rounding Problem)]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=6031</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=6031&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Supplier Payment Entry(Rounding Problem).]]></description>
		<lastBuildDate>Wed, 09 Dec 2015 13:18:46 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Supplier Payment Entry(Rounding Problem)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24888#p24888</link>
			<description><![CDATA[<p>Thanks @joe.</p><p><a href="https://github.com/FrontAccountingERP/FA/commit/085bf05f7c33a3e20a418f2b04e6426c2096cb2c">FA 2.3 commit</a><br /><a href="https://github.com/FrontAccountingERP/FA/commit/3a556450989741a0bd49233479b362a7842a54a5">FA 2.4 commit</a></p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 09 Dec 2015 13:18:46 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24888#p24888</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Payment Entry(Rounding Problem)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24887#p24887</link>
			<description><![CDATA[<p>This ugly&nbsp; bastard is now fixed in both 2.3.24 and 2.4 Beta.</p><p>/Joe</p>]]></description>
			<author><![CDATA[null@example.com (joe)]]></author>
			<pubDate>Wed, 09 Dec 2015 13:10:08 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24887#p24887</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Payment Entry(Rounding Problem)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24882#p24882</link>
			<description><![CDATA[<p>This is possibly done to increase the precision for computing to avoid rounding errors / deltas where unit amounts are computed from large quantities based bulk pricing.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 09 Dec 2015 03:32:14 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24882#p24882</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Payment Entry(Rounding Problem)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24881#p24881</link>
			<description><![CDATA[<p>Speaking of <strong>includes/ui/ui_input.inc</strong>, what&#039;s this supposed to do?</p><div class="codebox"><pre><code>//JAM  Allow entered unit prices to be fractional
function unit_amount_cells($label, $name, $init=null, $params=null, $post_label=null, $dec=null)
{
    if (!isset($dec))
          $dec = user_price_dec()+2;
    amount_cells_ex($label, $name, 15, 15, $init, $params, $post_label, $dec+2);
}</code></pre></div>]]></description>
			<author><![CDATA[null@example.com (tm)]]></author>
			<pubDate>Tue, 08 Dec 2015 19:48:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24881#p24881</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Payment Entry(Rounding Problem)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24872#p24872</link>
			<description><![CDATA[<p>Line 310 in <strong>purchasing/supplier_payment.php</strong> is hardcoded with number of decimals and hence it did not use the chosen 3 decimal places you set in the preferences for Prices/Amounts.</p><p>This appears to be the only hardcoded place left in FA 2.3.</p><p>Omitting the last argument (<strong>$dec</strong>) will automatically take the preference value set when the <strong><em>function</em> amount_row()</strong> which finally calls the <strong><em>function</em> amount_cells_ex()</strong> is executed. These functions are defined in <strong>includes/ui/ui_input.inc</strong> file.</p><p>Hence Line 310 in <strong>purchasing/supplier_payment.php</strong> :<br /></p><div class="codebox"><pre><code>        amount_row(_(&quot;Bank Amount:&quot;), &#039;bank_amount&#039;, null, &#039;&#039;, $bank_currency, 2);</code></pre></div><p>should be changed to:</p><div class="codebox"><pre><code>        amount_row(_(&quot;Bank Amount:&quot;), &#039;bank_amount&#039;, null, &#039;&#039;, $bank_currency);</code></pre></div><p>It stands committed in <a href="https://github.com/apmuthu/frontaccounting/commit/3d2d9e5ae32212a3353f2361516444411d0b841d">FAMods in my unofficial FA 2.3 repo</a>.</p><p>@joe: Kindly do the needful in FA 2.3 and in Line 304 in FA 2.4.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Tue, 08 Dec 2015 15:40:07 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24872#p24872</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Payment Entry(Rounding Problem)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24871#p24871</link>
			<description><![CDATA[<p>I already had the Decimal Places for Prices/Amounts set to 3, but it did solve the problem,this happens only for the bank amount field,the remaining fields are fine.</p>]]></description>
			<author><![CDATA[null@example.com (farhath)]]></author>
			<pubDate>Tue, 08 Dec 2015 12:45:04 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24871#p24871</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Payment Entry(Rounding Problem)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24815#p24815</link>
			<description><![CDATA[<p>Instead, just change the Decimal Places for Prices/Amounts to 3 in Setup =&gt; Display Setup.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Thu, 26 Nov 2015 16:43:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24815#p24815</guid>
		</item>
		<item>
			<title><![CDATA[Re: Supplier Payment Entry(Rounding Problem)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24803#p24803</link>
			<description><![CDATA[<p>I managed to fix the problem by changing one Line<br />The original source is:<br />&nbsp; &nbsp; if ($bank_currency != $supplier_currency) <br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; amount_row(_(&quot;Bank Amount:&quot;), &#039;bank_amount&#039;, null, &#039;&#039;, $bank_currency, 2);<br />&nbsp; &nbsp; }</p><p>Changed to (Just removed the &#039;,2&#039;:<br />&nbsp; &nbsp; if ($bank_currency != $supplier_currency) <br />&nbsp; &nbsp; {<br />&nbsp; &nbsp; &nbsp; &nbsp; amount_row(_(&quot;Bank Amount:&quot;), &#039;bank_amount&#039;, null, &#039;&#039;, $bank_currency);<br />&nbsp; &nbsp; }</p>]]></description>
			<author><![CDATA[null@example.com (farhath)]]></author>
			<pubDate>Mon, 23 Nov 2015 19:15:19 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24803#p24803</guid>
		</item>
		<item>
			<title><![CDATA[Supplier Payment Entry(Rounding Problem)]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=24800#p24800</link>
			<description><![CDATA[<p>When making a Payment to a Supplier, The bank Amount is rounded to 2 Digits. Example:<br />A payment of 100.555 is rounded to 100.560,&nbsp; this is fine for currency with 2 digits, but our currency is 3 digits.</p><br /><p>The rounding error happens only for the the (Bank Amount - entry) whereas the (Bank Charge - entry) is fine.</p><p>Any Help.</p>]]></description>
			<author><![CDATA[null@example.com (farhath)]]></author>
			<pubDate>Mon, 23 Nov 2015 08:55:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=24800#p24800</guid>
		</item>
	</channel>
</rss>
