欧洲/欧盟:“欧洲中央银行”的汇率错误地导入到Microsoft Dynamics AX

本文适用于所有区域的 Microsoft Dynamics AX。

症状

欧洲央行(ECB)在16-00 CET后 ) 公布汇率 (。 这意味着,这些费率可以视为第二天的有效费率。 但在“ECB”网站上,利率在公告当天被指示为有效。 同时,即使在16-00 CET之前,公司也会使用公布的费率进行日常业务。 在大多数情况下,它与当天的汇率产生模棱两可的情况。

解决方法

为了解决这个问题,在从欧洲央行进口汇率到Microsoft Dynamics AX 期间,将实行一天的转换。
“ECB”针对“Day N”发布的费率将从“Day N+1”导入到Microsoft Dynamics AX。

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,outdateStringParsed) ;
        如果 (nextStringDay==DateTime.MinValue)
         {
             nextWorkingDay=getNextWorkingDay (dateStringParsed) ;
                 如果 (nextWorkingDay<=DateTime.Today)
                 {
                   dateValue=nextWorkingDay;
                  }
          }
          else
         {
                   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 (方法,即可以将其完全删除)

        private DateTime getNextWorkingDay (DateTime _date)
        {
            执行
            {
                _date = _date + TimeSpan.FromDays (1) ;
            } while (_date。DayOfWeek == DayOfWeek.Saturday ||_日期。DayOfWeek == DayOfWeek.Sunday) ;
            返回_date;
        }

安装信息

如果对受此修补程序影响的一个或多个方法或表具有自定义项,则必须在测试环境中应用这些更改,然后才能在生产环境中应用修补程序。
  有关如何安装此修补程序的详细信息,请单击下面的文章编号以查看Microsoft知识库中的文章:

893082 如何安装 Microsoft Dynamics AX 修补程序

先决条件

必须安装 Microsoft Dynamics AX 2012 R2 才能应用此修补程序。

重启要求

应用修补程序后,必须重启 Application Object Server (AOS) 服务。

文件信息

此修补程序的全局版本具有下表中列出的文件属性 (或更高版本的文件属性) 。 这些文件的日期和时间以协调世界时 (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 33,000 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 支持组织直接创建的“快速发布”文章。 此处包含的信息是按原样提供的,以响应新出现的问题。 由于发布速度较快,这些材料可能包含印刷错误,无需通知即可随时修改。 有关其他注意事项,请参阅使用条款