Items posted with currency code that is the same as LCY
niallc
Member Posts: 2
We have an issue where some of our users are posting into sub entities and selecting the currency code even though it is the the lcy, hence when you run reports you get currency divided into blank (lcy), GBP (also LCY) and USD making them harder to read.
is there any trick to preventing this, or to remedying the reporting issue?
thanks
is there any trick to preventing this, or to remedying the reporting issue?
thanks
0
Comments
-
Hi,
Options.
1. Remove the LCY Currency from the Currency Table.
2. If the LCY is required or populated for other reasons like exports/imports then in the posting Codeunits for the General Journal Line, Clear the "Currency Code" and check the "Currency Factor"
Make sure the LCY code in the General Ledger Setup is set to the LCY "Currency Code"
Codeunit 11 "Gen. Jnl.-Check Line"
OnRun(VAR Rec : Record "Gen. Journal Line")
GLSetup.GET;//New Code Start GLSetup.TESTFIELD("LCY Code"); IF "Currency Code" = GLSetup."LCY Code" THEN BEGIN "Currency Code" := ''; IF "Currency Factor" <> 0 THEN TESTFIELD("Currency Factor",1); END; //New Code End
3. Set the "Currency Code" and check the "Currency Factor" so all entries have a "Currency Code"!
Make sure the LCY code in the General Ledger Setup is set to the LCY "Currency Code"
Codeunit 11 "Gen. Jnl.-Check Line"
OnRun(VAR Rec : Record "Gen. Journal Line")
GLSetup.GET;//New Code Start GLSetup.TESTFIELD("LCY Code"); IF ("Currency Code" = GLSetup."LCY Code")OR("Currency Code" = '') THEN BEGIN "Currency Code" := GLSetup."LCY Code"; IF "Currency Factor" <> 0 THEN TESTFIELD("Currency Factor",1) ELSE "Currency Factor" := 0; END; //New Code End
David 8)Analyst Developer with over 17 years Navision, Contract Status - Busy
Mobile: +44(0)7854 842801
Email: david.cox@adeptris.com
Twitter: https://twitter.com/Adeptris
Website: http://www.adeptris.com0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions