<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Bug in the calculation of foreign exchange gains]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=1099&amp;type=atom" />
	<updated>2010-02-22T12:51:21Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=1099</id>
		<entry>
			<title type="html"><![CDATA[Re: Bug in the calculation of foreign exchange gains]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4930#p4930" />
			<content type="html"><![CDATA[<p>Yes we have to make more check. CVS Main is updated. I sent you an updated file. You can also fetch it here:</p><p>----------------- <strong>OBS! New File</strong> (final rerun) ------------------</p><br /><p>We now recalculate all the currency bank accounts belonging to the same GL account. This makes the algorithm much cleaner and easier and safe and the performance should be improved too. So the GL account will always be updated when payments or transfer are done.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2010-02-22T12:51:21Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4930#p4930</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in the calculation of foreign exchange gains]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4925#p4925" />
			<content type="html"><![CDATA[<p>joe... i&#039;ve found another bug. i just sent an email to you about this bug</p>]]></content>
			<author>
				<name><![CDATA[nucreativa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=658</uri>
			</author>
			<updated>2010-02-22T07:13:15Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4925#p4925</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in the calculation of foreign exchange gains]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4924#p4924" />
			<content type="html"><![CDATA[<p>thaks for the update... you&#039;ve made a great software. kept trying to make it better <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[nucreativa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=658</uri>
			</author>
			<updated>2010-02-22T02:46:07Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4924#p4924</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in the calculation of foreign exchange gains]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4899#p4899" />
			<content type="html"><![CDATA[<p>Hello,<br />This bug is now fixed and the CVS Main repository is updated. Affected file:<br />/gl/includes/db/gl_db_banking.inc</p><p>If you need this fix asap you can download it here:</p><br /><br /><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2010-02-19T17:12:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4899#p4899</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in the calculation of foreign exchange gains]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4893#p4893" />
			<content type="html"><![CDATA[<p>Hello, nucreativa,<br />Unfortunately your code will not work. You know that there can be several bank accounts belonging to the same GL account. So we can not just calculate the sum from the same period in the GL account. This may fetch to many rows that should not be calculated.<br />But I have sent you some more check to the former sql statement and asked you to test this.<br />I guess it will work with these new added checks.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2010-02-19T10:08:25Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4893#p4893</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in the calculation of foreign exchange gains]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4892#p4892" />
			<content type="html"><![CDATA[<p>We have received it, thanks. We will look into it asap.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2010-02-19T09:37:39Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4892#p4892</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in the calculation of foreign exchange gains]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4879#p4879" />
			<content type="html"><![CDATA[<p>I&#039;ve sent it</p>]]></content>
			<author>
				<name><![CDATA[nucreativa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=658</uri>
			</author>
			<updated>2010-02-19T03:38:58Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4879#p4879</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in the calculation of foreign exchange gains]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4863#p4863" />
			<content type="html"><![CDATA[<p>You can send the code to contributions mail box (you will find eml address on site Contact page).<br />Thanks.<br />Janusz</p>]]></content>
			<author>
				<name><![CDATA[itronics]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=89</uri>
			</author>
			<updated>2010-02-18T09:39:16Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4863#p4863</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in the calculation of foreign exchange gains]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4856#p4856" />
			<content type="html"><![CDATA[<p>joe, I made some changes to the gl_db_banking.inc. I&#039;ve improved foreign exchange gain formulas. I think this new formula to resolve this issue. where I had to send files of this improvement.</p>]]></content>
			<author>
				<name><![CDATA[nucreativa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=658</uri>
			</author>
			<updated>2010-02-18T03:10:52Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4856#p4856</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in the calculation of foreign exchange gains]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4835#p4835" />
			<content type="html"><![CDATA[<p>no joe, in Indonesia, 1 USD is more than 9000 in IDR. I&#039;ll try your suggestion first. thanks</p>]]></content>
			<author>
				<name><![CDATA[nucreativa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=658</uri>
			</author>
			<updated>2010-02-17T04:32:38Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4835#p4835</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Bug in the calculation of foreign exchange gains]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4827#p4827" />
			<content type="html"><![CDATA[<p>I think you have an extreme high exchange rate against the USD. Maybe you should increase the exchange rate digits to 6 or 8 to get a better calculation.</p><p>/Joe</p>]]></content>
			<author>
				<name><![CDATA[joe]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=3</uri>
			</author>
			<updated>2010-02-16T12:39:55Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4827#p4827</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Bug in the calculation of foreign exchange gains]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=4824#p4824" />
			<content type="html"><![CDATA[<p>I&#039;m sorry if my english not good. there is a bug in the frontaccounting, more precisely in the calculation of foreign exchange gains.</p><p>This error occurs when conducting transactions related to different currencies.</p><p>in my case, I change the default currency to rupiah (Indonesian currency). and I made a USD bank account. current assets and petty cash in rupiah. then I deposit my money into the account USD. more details follow the steps below.</p><p>1. deposit USD 10,000, with the exchange rate of 10,000 rupiah per USD on 1 January.<br />2. deposit USD 1000, with the exchange rate of 9,500 rupiah per USD at the date of January 10.<br />3. deposit USD 100, with the exchange rate of 9,500 rupiah per USD on the same date (10 January).</p><p>The first and second steps were correct. but the third step produces the wrong value. I question why foreign exchange gain is still in the calculations? if it still must be calculated to produce the wrong balance sheet. because the foreign exchange loss recorded two times in the general ledger.</p><p>Please response as soon as possible <img src="https://frontaccounting.com/punbb/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[nucreativa]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=658</uri>
			</author>
			<updated>2010-02-16T08:53:50Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=4824#p4824</id>
		</entry>
</feed>
