Rounding in NAV
TysvdHeuvel
Member Posts: 3
Hi All,
I'm working on a bit of code outside of NAV, which uses some price, discount and VAT data from NAV.
And, now i'm looking at some minor rounding differences.
Can anyone explain me how NAV does it's rounding? Only at the end of a calculation? Half way, before multiplying with the quantity? Or is there more to know about rounding rules?
Thanks for helping,
Tys
I'm working on a bit of code outside of NAV, which uses some price, discount and VAT data from NAV.
And, now i'm looking at some minor rounding differences.
Can anyone explain me how NAV does it's rounding? Only at the end of a calculation? Half way, before multiplying with the quantity? Or is there more to know about rounding rules?
Thanks for helping,
Tys
0
Comments
-
Yes, there's a lot more to know. Just a few things...
- It's possible to set-up how many decimals places are shown. Depending on how you get your data from NAV this could lead to differences.
- There are two fields in the General Ledger Setup (Amount Rounding Precision and Unit-Amount Rounding Precision) that are used to round certain fields in NAV. Depending on that setup and the way you round your figures that could also lead to differences.
- Because NAV rounds every line in a document separately there might be a difference between the total amount of all lines and the amount of the sum of all lines. That difference could lead to an extra system-created line that holds this difference and posts it to certain accounts.
- ...
So, I think if you want to solve a certain issue than it would be the best if you describe exactly what your are trying to do and where you get the difference."Money is likewise the greatest chance and the greatest scourge of mankind."0
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