Rounding and Nav 4.0 SP3
frede
Member Posts: 80
I've just experienced an interesting upgrade problem which I want to share with you...
I had an old 1.30 codebase running on 4.0 with hotfix - but no SP.
Now I've upgraded to 4.0 SP3 - and the ROUND-function stopped working!
When using ROUND(amount) <> amount - Navision made an error, if Amount was for instance 2550.55!
This was because the standard ROUND was now no decimals - just because of the SP update.
I found that in CU1 there is a function called ReadRounding (No. 14) and here I just have use the exit value 0.01 - then everything works fine again!
But it gave me a head ache for a while - and this on a monday...
I've tried to find this documented somewhere - maybe in SP2 - but I couldn't...So therefore I write this note for all of you out there maybe about to experience the same problem (I've looked at a 2.65 and the ReadRounding is also "missing" in that version)..So be carefull out there..
...Thank You MBS! - Always a pleasure!
I had an old 1.30 codebase running on 4.0 with hotfix - but no SP.
Now I've upgraded to 4.0 SP3 - and the ROUND-function stopped working!
When using ROUND(amount) <> amount - Navision made an error, if Amount was for instance 2550.55!
This was because the standard ROUND was now no decimals - just because of the SP update.
I found that in CU1 there is a function called ReadRounding (No. 14) and here I just have use the exit value 0.01 - then everything works fine again!
But it gave me a head ache for a while - and this on a monday...
I've tried to find this documented somewhere - maybe in SP2 - but I couldn't...So therefore I write this note for all of you out there maybe about to experience the same problem (I've looked at a 2.65 and the ReadRounding is also "missing" in that version)..So be carefull out there..
...Thank You MBS! - Always a pleasure!
Regards,
Henrik Frederiksen, Denmark
Henrik Frederiksen, Denmark
0
Comments
-
Source of your problems is the sentence in the on-line help for ROUND function:
This "In other countries, other default values may be used" is what can you lead to some function, which will decide which default will be used. And where you can find such a function? Just in CU1... :-)Precision
Data type: decimal
This optional parameter determines the precision used when rounding. The default value is 0.01 for the US version. In other countries, other default values may be used. Note that the default value is only used when you have not specified the rounding precision in the Amount Rounding Precision field in the General Ledger Setup table.0
Categories
- All Categories
- 73 General
- 73 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
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 328 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
