Codeunit 12 - GetCurrencyExchRate() function...

Zac_Ryon
Member Posts: 6
Howdy!
Anyone have any idea why, in codeunit 12, GetCurrencyExchRate() function, the code looks to the previous day when setting the exchange rate date used for calculating the Additional Reporting Currency?
This seems to be in version 5.0 and version 4.0. I don't have any older databases.
- Zac
Anyone have any idea why, in codeunit 12, GetCurrencyExchRate() function, the code looks to the previous day when setting the exchange rate date used for calculating the Additional Reporting Currency?
... NewCurrencyDate := GenJnlLine."Posting Date"; IF GenJnlLine."Reversing Entry" THEN NewCurrencyDate := NewCurrencyDate - 1; ...
This seems to be in version 5.0 and version 4.0. I don't have any older databases.
- Zac
0
Answers
-
Hi Zac,
IF GenJnlLine."Reversing Entry" THEN
This is for reversing journals only. Reversing journal post a reversing entry on the previous day.0 -
Ahhh. Reversing entries crossed my mind, but I guess I didn't think it through completely.
That code is applicable to the second transaction line that gets generated by the system. So if I post a reversing journal entry for November 30, the system will create a second line for December 1, but it should use the exchange rate in effect for the previous day.
That makes sense. Thanks for pointing me in the right direction.
- Zac0 -
Hi Zac,
Glad to help- can you edit the first post and change the attribute to solved
Thanks.0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions