歐洲/歐盟:來自「歐洲中央銀行」的匯率錯誤匯入 Microsoft Dynamics AX

本文適用於 Microsoft Dynamics AX 的所有區域。

症狀

匯率由歐洲央行 (「ECB」) 每日發布,時間為中歐時間16點至00點後。 這表示這些利率可以視為隔日有效的利率。 但在「ECB」網站上,利率標示為公告當日有效。 同時,公司在16點到00點CET前就使用公布的費率來完成日常營運。 大多數情況下,這會造成當前匯率的模糊情況。

解決方式

為了解決這個問題,在匯率從歐洲央行匯入 Microsoft Dynamics AX 時實施了一天的時段。
「ECB」公布的「第N天」利率將匯入Microsoft Dynamics AX,視為「第N+1日」的有效期。

Microsoft認為這種行為涵蓋了歐洲最廣泛的商業情境。

如果熱修補中包含的這些變更與目前公司的流程不符,則可依下方建議回退修正。 Microsoft 以「原樣」提供此程式碼建議,以說明變更可能的還原方式。 你承擔風險,並了解使用此代碼可能帶來的所有後果。 Microsoft 不提供明示或暗示的保證,包括但不限於對可銷售性或特定用途適用性的默示保證。

以下程式碼必須以 TryForUrl (\Visual Studio Projects\C Sharp Projects\exchangerateprovider\Project Content\providers\ 替換CentralBankOfEuropeProvider.cs)

     DateTime.TryParseExact (dateString,“yyyy-MM-dd”,CultureInfo.InvariantCulture,DateTimeStyles.None,outdateString 解析) ;
        如果 (nextStringDay==DateTime.MinValue)
         {
             nextWorkingDay=getNextWorkingDay (dateString解析) ;
                 如果 (nextWorkingDay<=DateTime.Today)
                 {
                   dateValue=nextWorkingDay;
                  }
          }
          否則
         {
                   dateValue=nextStringDay;
         }
         nextStringDay=dateStringParsed;

使用代碼:

      DateTime.TryParseExact (dateString,“yyyy-MM-dd”,CultureInfo.InvariantCulture,DateTimeStyles.None,outdateValue) ;
      dateValue=dateValue+TimeSpan.FromDays (1) ;

注意:此變更將使部分程式碼不再使用,這些內容可依你的判斷刪除或保持原狀。

方法:TryForUrl

            DateTime nextStringDay = DateTime.MinValue;
            DateTime、dateStringParsed;
            DateTime,NextWorkingDay;

方法:getNextWorkingDay (,也就是說可以完全移除)

        私人約會時間 getNextWorkingDay (DateTime _date)
        {
            可行事項
            {
                _date = _date + TimeSpan.FromDays (1) ;
            } 而 (_date。星期幾 == 星期幾。星期六 ||_date。星期幾 == 星期幾。星期天) ;
            返回_date;
        }

安裝資訊

如果你對受此熱修正影響的方法或資料表有自訂,必須先在測試環境中套用這些變更,然後再在生產環境中套用熱修正。
  欲了解更多如何安裝此熱修補程式的資訊,請點擊以下文章編號,在 Microsoft 知識庫中查看相關文章:

893082 如何安裝 Microsoft Dynamics AX 熱修補程式

先決條件

您必須安裝 Microsoft Dynamics AX 2012 R2 才能套用此熱修補。

重新啟動需求

在套用熱修正後,必須重新啟動 AOS) 服務 (Application Object Server。

檔案詳細資訊

此熱修補的全域版本包含以下表格中列出的檔案屬性 (或更新的檔案屬性) 。 這些檔案的日期與時間是以國際標準時間 (UTC) 表示。 當您檢視檔案資訊時,它會轉換成當地時間。 若要查看 UTC 與當地時間的差異,請使用 [控制台] 中 [日期和時間] 項目的 [時區] 索引標籤。

檔案名稱 檔案版本 檔案大小 日期 時間 平台
Aximpactanalysis.exe 不適用 62,144 2014年7月20日 23:16 x86
Axupdate.exe 不適用 61,616 2014年7月20日 23:16 x86
Dynamicsax2012r2-kb3030992.exe 6.3.15.0 11,786,952 2015年1月29日 1,256 x86
Licensetermsar.rtf 不適用 2,173 2014年7月20日 23:16 不適用
Licensetermscs.rtf 不適用 91,247 2014年7月20日 23:16 不適用
Licensetermsda.rtf 不適用 101,181 2014年7月20日 23:16 不適用
Licensetermsde.rtf 不適用 116,642 2014年7月20日 23:16 不適用
Licensetermsen.rtf 不適用 102,374 2014年7月20日 23:16 不適用
Licensetermses.rtf 不適用 96,985 2014年7月20日 23:16 不適用
Licensetermset.rtf 不適用 102,895 2014年7月20日 23:16 不適用
Licensetermsfi.rtf 不適用 106,101 2014年7月20日 23:16 不適用
Licensetermsfr.rtf 不適用 130,011 2014年7月20日 23:16 不適用
Licensetermshu.rtf 不適用 93,010 2014年7月20日 23:16 不適用
Licensetermsis.rtf 不適用 36,458 2014年7月20日 23:16 不適用
Licensetermsit.rtf 不適用 115,086 2014年7月20日 23:16 不適用
Licensetermsja.rtf 不適用 105,917 2014年7月20日 23:16 不適用
Licensetermslt.rtf 不適用 122,674 2014年7月20日 23:16 不適用
Licensetermslv.rtf 不適用 105,401 2014年7月20日 23:16 不適用
Licensetermsnb-no.rtf 不適用 115,700 2014年7月20日 23:16 不適用
Licensetermsnl.rtf 不適用 110,040 2014年7月20日 23:16 不適用
Licensetermspl.rtf 不適用 116,322 2014年7月20日 23:16 不適用
Licensetermspt-br.rtf 不適用 101,514 2014年7月20日 23:16 不適用
Licensetermsru.rtf 不適用 148,577 2014年7月20日 23:16 不適用
Licensetermssv.rtf 不適用 115,453 2014年7月20日 23:16 不適用
Licensetermsth.rtf 不適用 153,768 2014年7月20日 23:16 不適用
Licensetermszh-hans.rtf 不適用 99,245 2014年7月20日 23:16 不適用
Dynamicsax2012r2-kb2858835-foundation.axmodel 6.2.1000.3670 50,416 2014年7月20日 23:16 不適用
Dynamicsax2012r2-kb2909140-foundation.axmodel 6.2.1000.4748 17,136 2014年7月20日 23:16 不適用
Dynamicsax2012r2-kb3030992-foundation.axmodel 6.2.1000.9837 330.00 2015年1月29日 1,250 不適用
Dynamicsax2012r2-kb3030992-fpplabels.axmodel 6.2.1000.9837 19,688 2015年1月29日 1,250 不適用
Dynamicsax2012r2-kb3030992-syplabels.axmodel 6.2.1000.9837 13,957,864 2015年1月29日 12:49 不適用
Axsetupsp.exe 6.2.1000.8459 1,886,888 2014年7月20日 23:16 x86
Axsetupsplib.dll 6.2.1000.8459 80,048 2014年7月20日 23:16 x86
Axsetupui.exe 6.2.1000.5369 211,632 2014年7月20日 23:16 x86
Axutillib.dll 6.2.120.0 929,960 2015年1月29日 12:49 x86
Install-dixfservice.ps1 不適用 19,298 2015年1月29日 12:49 不適用
Microsoft.dynamics.servicing.operations.dll 6.2.1000.3174 41,712 2014年7月20日 23:16 x86
Axsetupsp.resources.dll 6.2.147.8303 387,768 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 375,480 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 375,480 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 379,576 2015年1月29日 12:48 x86
Axsetupsp.resources.dll 6.2.147.8303 379,576 2015年1月29日 12:48 x86
Axsetupsp.resources.dll 6.2.147.8303 371,384 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 375,480 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 383,672 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 395,960 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 375,480 2015年1月29日 12:48 x86
Axsetupsp.resources.dll 6.2.147.8303 379,576 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 387,768 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 375,480 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 375,480 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 375,480 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 379,576 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 379,576 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 379,576 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 395,960 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 375,480 2015年1月29日 12:49 x86
Axsetupsp.resources.dll 6.2.147.8303 416,440 2015年1月29日 12:48 x86
Axsetupsp.resources.dll 6.2.147.8303 371,384 2015年1月29日 12:49 x86

狀態

Microsoft 已確認這是「適用對象」一節中列出的 Microsoft 產品中的問題。

注意本文為 Microsoft 支援單位內部直接建立的「快速發佈」文章。 本書所含資訊為回應新興議題而提供。 由於快速發佈,資料可能包含拼字錯誤,並可能會隨時修訂,不另行通知。 請參閱使用條款以瞭解其他相關考量。