Missing Zero

Suds
Member Posts: 22
I'm new to NAV and I'm having trouble with a field in a Sales Invoice Report. The field that should display the unit price seems to cut off the zero at the end of the price. When it is a complete dollar ($43.00) it even cuts off the decimal ($43). I've searched around and seen posts about the SourceExpr but don't even know where to go to see what the settings for those properties.
Any help or guidance would be much obliged. Thanks in advance.
Suds
Any help or guidance would be much obliged. Thanks in advance.
Suds
0
Answers
-
It is likely being displayed using FORMAT. When a number is formatted, and the type is not specified, it will cut off as many decimal places as it can while still retaining the same number. Take a look at the "Format Property" option under the Help Menu (the developer help, not the NAV application help) in the NAV client.0
-
Look for decimalplaces in the helpfile.
Probably you'll want to place them at "2:2" where the first 2 is minimum number of decimal places and the second one the maximum number.0 -
it may seem obvious, but i'm not sure where this helpfile is nor the Format Property. I searched through the help menu in the developer as well as the report itself and didn't find the property.0
-
-
Thanks for the help everyone.
I finally solved the issue by usingIF Quantity = 0 THEN "Unit Price" := 0 // so it won't print ELSE "Unit Price" := ROUND((AmountExclInvDisc + "Line Discount Amount") / Quantity ,0.01); END;
my issue now is the numbers printed don't have commas (,) every third digit (ex: 1,000,000,000.00)
any help would be great0 -
Take a look at the FORMAT function. You can dictate how you want the numbers displayed.0
-
Hi,
I had this issue in NAV 2013 yesterday. I made the following changes which resolved it:
1.) in the "format" property of the field in Visual Studio I typed n2 (see link here for list of formats) http://dynamicsuser.net/blogs/mark_brum ... -rdlc.aspx
2.) I right clicked on the field and went to the expression properties and added the code highlighted in red.
=Code.BlankZero(CDec(Choose(25,Split(Cstr(ReportItems!Stub1_LineAmount.Value),Chr(177)))))
Now the report prints all decimals even if it is .00
Hope this helps someone.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