<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[FrontAccounting forum — Exchange Rates - date not refreshed on update]]></title>
	<link rel="self" href="https://frontaccounting.com/punbb/extern.php?action=feed&amp;tid=9219&amp;type=atom" />
	<updated>2021-03-08T22:22:45Z</updated>
	<generator>PunBB</generator>
	<id>https://frontaccounting.com/punbb/viewtopic.php?id=9219</id>
		<entry>
			<title type="html"><![CDATA[Re: Exchange Rates - date not refreshed on update]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39242#p39242" />
			<content type="html"><![CDATA[<p>@apmuthu: I don&#039;t remember but it was probably ECB. I don&#039;t think it matters as this code only depends on &#039;get_rate&#039; being set (line 136).</p>]]></content>
			<author>
				<name><![CDATA[PaulShipley]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20029</uri>
			</author>
			<updated>2021-03-08T22:22:45Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39242#p39242</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Exchange Rates - date not refreshed on update]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39234#p39234" />
			<content type="html"><![CDATA[<p>@PaulShipley: Which exchange rate provider was chosen?</p><p>@joe: ?</p>]]></content>
			<author>
				<name><![CDATA[apmuthu]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=364</uri>
			</author>
			<updated>2021-03-08T07:28:54Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39234#p39234</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Exchange Rates - date not refreshed on update]]></title>
			<link rel="alternate" href="https://frontaccounting.com/punbb/viewtopic.php?pid=39221#p39221" />
			<content type="html"><![CDATA[<p>The date on the screen is not being refreshed when the exchange rates are updated. The data is correct in the database.</p><p>In gl/manage/exchange_rates.php, on line 132 the &#039;date&#039; is updated to &#039;Today()&#039;, yet only the &#039;BuyRate&#039; is refreshed on the screen (line 140).</p><p>I believe that this patch fixes the issue.<br /></p><div class="codebox"><pre><code>@@ -137,6 +137,8 @@ function display_rate_edit()
     {
         $_POST[&#039;BuyRate&#039;] = 
             maxprec_format(retrieve_exrate($_POST[&#039;curr_abrev&#039;], $_POST[&#039;date_&#039;]));
+
+        $Ajax-&gt;activate(&#039;date_&#039;);
         $Ajax-&gt;activate(&#039;BuyRate&#039;);
     }
     amount_row(_(&quot;Exchange Rate:&quot;), &#039;BuyRate&#039;, null, &#039;&#039;,</code></pre></div><p>Hope this helps</p>]]></content>
			<author>
				<name><![CDATA[PaulShipley]]></name>
				<uri>https://frontaccounting.com/punbb/profile.php?id=20029</uri>
			</author>
			<updated>2021-03-07T00:14:41Z</updated>
			<id>https://frontaccounting.com/punbb/viewtopic.php?pid=39221#p39221</id>
		</entry>
</feed>
