NAV default rounding

txeriff
Member Posts: 515
Hi All,
Hope someone can help.
it looks like NAV saves the decimal data as follows:

but then it's shown as:

This is a bespoke table, no decimal places or any rounding defined in the table or page.
I suppose this has to do with some NAV's general setup.
I ended doing some formatting like:
and this seems to match nav default rounding.
I was just curious, probably its a general setup and you can't change behaviour.
thanks
Hope someone can help.
it looks like NAV saves the decimal data as follows:

but then it's shown as:

This is a bespoke table, no decimal places or any rounding defined in the table or page.
I suppose this has to do with some NAV's general setup.
I ended doing some formatting like:
format(Pricing."UK C. Sell Price (g)", 0, '<Precision,2:2><Sign><Integer Thousand><Decimals>)
and this seems to match nav default rounding.
I was just curious, probably its a general setup and you can't change behaviour.
thanks
0
Answers
-
The first problem is no decimal places\rounding defined on the table. Data needs to be saved to the tables using the same formatting to which it will be display and used by the application. Decimal fields are typically set to a maximum of 5 decimal places. Data being saved to the DB should respect this.
There are no bugs - only undocumented features.0 -
The first problem is no decimal places\rounding defined on the table. Data needs to be saved to the tables using the same formatting to which it will be display and used by the application. Decimal fields are typically set to a maximum of 5 decimal places. Data being saved to the DB should respect this.
Hi thanks but that doesn't answer anything:
-The table was there before I started with it.
-decimalPlaces property is not the issue: Check NAV standard unit cost in SO lines for example, go to SQL table and then compare how it is shown in nav page.
-I know general ledger setup LCY controls this on SO lines etc (by autoformat expresion, currency exp. etc) but for a bespoke table I can't see where. However I managed to round it as NAV does.0 -
Sounds like you have a problem with "Unit Cost" also. You should not be seeing more than 5 decimal places there either.
There are no bugs - only undocumented features.1
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