how to Remove 00/100 in Standard Check, If the Amount Has No. Value

basic0220
Member Posts: 43
Hi Guys,
I have a question regarding the Dynamics NAV Standard Check,
I'm Having trouble formatting the Amount in words Part of the check, since the requirement is to remove the 0/100
if the amount in payment journal Lines, has no decimal value
to be exact.
if the amount is 1000.00 the amount in words should be
-ONE THOUSAND (Currency) ONLY
and if the amount is 1000.25
- ONE THOUSAND AND 25/100 (CURRENCY) ONLY
hope someone knows how to edit the code for the report 1401
for this scenario
Thanks in advance.
have a nice day
I have a question regarding the Dynamics NAV Standard Check,
I'm Having trouble formatting the Amount in words Part of the check, since the requirement is to remove the 0/100
if the amount in payment journal Lines, has no decimal value
to be exact.
if the amount is 1000.00 the amount in words should be
-ONE THOUSAND (Currency) ONLY
and if the amount is 1000.25
- ONE THOUSAND AND 25/100 (CURRENCY) ONLY
hope someone knows how to edit the code for the report 1401
for this scenario
Thanks in advance.
have a nice day
0
Comments
-
i dont know the report and i am overall new but personally i would just do a MOD 1 on the amount and if its = 0 remove the 00/100 via STRING function0
-
In the Report, You will find a function called FormatNoText.
In this Function, you will find
AddToNoText(NoText,NoTextIndex,PrintExponent,(FORMAT(No * DecimalPosition) + '/' + FORMAT(DecimalPosition)));
You can check If No = 0.00 then set the it to blank as
AddToNoText(NoText,NoTextIndex,PrintExponent,' ')
Hope it helps ! Do not forget your documentation.1 -
imclever1205 wrote: »In the Report, You will find a function called FormatNoText.
In this Function, you will find
AddToNoText(NoText,NoTextIndex,PrintExponent,(FORMAT(No * DecimalPosition) + '/' + FORMAT(DecimalPosition)));
You can check If No = 0.00 then set the it to blank as
AddToNoText(NoText,NoTextIndex,PrintExponent,' ')
Hope it helps ! Do not forget your documentation.
Hi imclever1205
Thank you for this, bit late to receive the notification on this forum. I totally forgot how to mark your comment as answer. thank you very much!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