<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[FrontAccounting forum — Tax calculated wrong]]></title>
		<link>https://frontaccounting.com/punbb/viewtopic.php?id=3743</link>
		<atom:link href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=3743&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in Tax calculated wrong.]]></description>
		<lastBuildDate>Sun, 27 Jan 2013 12:41:26 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: Tax calculated wrong]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15283#p15283</link>
			<description><![CDATA[<p>29.30 * 0.21 = 6.153 (Stored as 6.15)</p><p>29.30 - 6.153 = 23.147</p><p>23.147 may have been stored as 23.14 in the table<br />23.14 + 6.15 = 29.29 -&gt; one possibility.</p><p>Now when preparing the report (dividing factor = 1.00 - 0.21):<br />23.14 / 0.79 = 29.2911 rounded off to 29.29 -&gt; second possibility.</p><p>That is how the error comes in.</p><p>The fix should be in storing the properly rounded value in the table and in small value divisions these errors make it to the hundredths position and show up.</p><p>Anyone working in a bank that uses FA type accounting system can take all the less than 1 cent values into their account and make millions on billions of transactions!</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 27 Jan 2013 12:41:26 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15283#p15283</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax calculated wrong]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15156#p15156</link>
			<description><![CDATA[<p>Still no help?</p>]]></description>
			<author><![CDATA[null@example.com (ricardo777)]]></author>
			<pubDate>Sun, 20 Jan 2013 14:43:47 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15156#p15156</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax calculated wrong]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15085#p15085</link>
			<description><![CDATA[<p>Thanks for the reply.</p><p>The base amount of the purchase is 29.30</p><p>then the tax is 21.000% calculated via Import tax found on:</p><p>frontaccounting.com/fawiki/index.php?n=Main.TaxSystem</p><p>then the amounts are after using the import tax quick entry</p><p>Sub-total:&nbsp; &nbsp; 29.30<br />(%)&nbsp; &nbsp; -6.15<br />(%)&nbsp; &nbsp; 6.15<br />Invoice Total:&nbsp; &nbsp; 29.30</p><p>Then I save the page.</p><p>Then I go to Tax report and it shows this:</p><p>Supplier Invoice 21 13/01/2013 - 29.29 21.00 6.15 BTW IC<br />Supplier Invoice 21 13/01/2013 -- 29.29 21.00 -6.15 BTW hoog</p><p>But the amount given was 29.30 not 29.29</p><p>Tax inquiry shows the same</p><p>Type&nbsp; &nbsp; Description&nbsp; &nbsp; Amount&nbsp; &nbsp; Outputs/Inputs<br />BTW hoog 21%&nbsp; &nbsp; Charged on sales (Output Tax):&nbsp; &nbsp; 11.87&nbsp; &nbsp; 56.53<br />BTW hoog 21%&nbsp; &nbsp; Paid on purchases (Input Tax):&nbsp; &nbsp; -6.15&nbsp; &nbsp; -29.29<br />BTW hoog 21%&nbsp; &nbsp; Net payable or collectible:&nbsp; &nbsp; 5.72&nbsp; &nbsp; <br />BTW IC 21%&nbsp; &nbsp; Charged on sales (Output Tax):&nbsp; &nbsp; 0.00&nbsp; &nbsp; 0.00<br />BTW IC 21%&nbsp; &nbsp; Paid on purchases (Input Tax):&nbsp; &nbsp; 6.15&nbsp; &nbsp; 29.29<br />BTW IC 21%&nbsp; &nbsp; Net payable or collectible:&nbsp; &nbsp; 6.15&nbsp; &nbsp; <br />Total payable or refund:&nbsp; &nbsp; 11.87</p><p>When I watch Reports and Analysis &gt; Balance Sheet</p><p>Account Account Name Open Balance Period Close Balance<br />Assets<br />HUIDIGE ACTIVA<br />1200 Debiteuren 0.00 68.40 68.40<br />Total HUIDIGE ACTIVA 0.00 68.40 68.40<br />Total Assets 0.00 68.40 68.40<br />Liabilities<br />HUIDIGE PASSIVA<br />2100 Crediteuren 0.00 29.30 29.30<br />2310 BTW hoog 0.00 5.72 5.72<br />2312 BTW IC 0.00 6.15 6.15<br />Total HUIDIGE PASSIVA 0.00 41.17 41.17<br />Total Liabilities 0.00 41.17 41.17<br />Calculated Return 0.00 27.23 27.23<br />Total Liabilities and Equities 0.00 68.40 68.40</p>]]></description>
			<author><![CDATA[null@example.com (ricardo777)]]></author>
			<pubDate>Wed, 16 Jan 2013 16:14:55 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15085#p15085</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax calculated wrong]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15084#p15084</link>
			<description><![CDATA[<p>Please state the exact numbers involved in the division / multiplication like base amount and / or final amount, taxrate(21%), erroneous amount (29.29, 29.30) name, etc.<br />Also one navigation is given as General Ledger &gt; Tax Inquiry and what is the other navigation for invoice?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Wed, 16 Jan 2013 15:26:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15084#p15084</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax calculated wrong]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15083#p15083</link>
			<description><![CDATA[<p>Sorry the amount of €29.90 is wrong it is €29.30 so missing 1 cent.</p>]]></description>
			<author><![CDATA[null@example.com (ricardo777)]]></author>
			<pubDate>Wed, 16 Jan 2013 15:08:24 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15083#p15083</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax calculated wrong]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15057#p15057</link>
			<description><![CDATA[<p>From Directadmin:</p><p>Apache 2.4.3&nbsp; &nbsp; Running<br />MySQL 5.5.27&nbsp; &nbsp; Running<br />Php 5.4.10&nbsp; &nbsp; Installed</p><p>But it is running php v5.3(5.4 is dual php version)</p><p>Also if I remember good I also have tried php v 5.4</p><p>TAX rate is 21%</p><p>I am adding the amount of €29.90 and using the function Import tax so with quick entry adding the tax to GL item.</p><p>In the invoice payment and bank it shows 29.90 and the right TAX, but when I go to General Ledger &gt; Tax Inquiry it shows the right TAX amount but the invoice is now 29.29. So missing 1 cent.</p><p>If you need I can provide access to frontaccounting or other information.</p><p>Have tried different versions of frontaccounting but I can replicate the problem.</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (ricardo777)]]></author>
			<pubDate>Mon, 14 Jan 2013 15:46:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15057#p15057</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax calculated wrong]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15052#p15052</link>
			<description><![CDATA[<p>What version of MySQL / PHP are you using - is it possible that it is a quirk of some computation rounding off errors in some versions? What are the numbers involved - Tax Rate, Amount given, Amount expected?</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Mon, 14 Jan 2013 14:12:35 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15052#p15052</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax calculated wrong]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15042#p15042</link>
			<description><![CDATA[<p>Thanks for the reply and help.</p><p>But sorry I don&#039;t see the solution, I am not really familiar with php.</p>]]></description>
			<author><![CDATA[null@example.com (ricardo777)]]></author>
			<pubDate>Mon, 14 Jan 2013 12:00:50 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15042#p15042</guid>
		</item>
		<item>
			<title><![CDATA[Re: Tax calculated wrong]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15021#p15021</link>
			<description><![CDATA[<p>This happens when not rounding off as would occur in integer division. The only place in <strong>gl/includes/db/gl_db_trans.inc</strong> where such a calculation occurs is at line 360:<br /></p><div class="codebox"><pre><code>$net_amount = $amount/$tax[&#039;rate&#039;]*100;</code></pre></div><p>What needs to be done is how the <strong>$dec</strong> is being used from the <strong>Page Preferences &gt; Decimal Places &gt; Prices/Amounts</strong>.</p>]]></description>
			<author><![CDATA[null@example.com (apmuthu)]]></author>
			<pubDate>Sun, 13 Jan 2013 23:22:40 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15021#p15021</guid>
		</item>
		<item>
			<title><![CDATA[Tax calculated wrong]]></title>
			<link>https://frontaccounting.com/punbb/viewtopic.php?pid=15011#p15011</link>
			<description><![CDATA[<p>Hello,</p><p>We have a big issue with TAX calculation.</p><p>I are using version Mercurial Build 3131</p><p>We have setup frontaccounting with Import TAX from the wiki.</p><p>But when we enter amount with the import tax with feature Quick Entry, the amounts are correctly showing.</p><p>But when I go to Banking and General Ledger &gt; Tax Inquiry it shows not the same amount (29.30) but it shows 29.29 missing 1 cent.</p><br /><p>Have found a temp fix, settings the Page Preferences &gt; Decimal Places &gt; Prices/Amounts: from 2 to 4 and do the same procedure adding a new invoice of amount 29.3000 now with more Decimals the amount is correct in Tax Inquiry.</p><p>So we have a problem with the tax calculation or rounding.</p><p>Hope someone have a good fix that we don&#039;t have to use the 4 decimals.</p><p>Thanks</p>]]></description>
			<author><![CDATA[null@example.com (ricardo777)]]></author>
			<pubDate>Sun, 13 Jan 2013 16:04:45 +0000</pubDate>
			<guid>https://frontaccounting.com/punbb/viewtopic.php?pid=15011#p15011</guid>
		</item>
	</channel>
</rss>
