Report 1401

njaiku
Member Posts: 116
Hi,
To Everybody. When I run the report to display the Amount,
example
Amount = 20000
I need the Amount in words so I used the report (1401) in my report and it's working fine. It displays the Amount in words as
TWO THOUSAND RUPEES AND ZERO PAISA ONLY
But, I don't need to display this Zero Paisa in my report.
In case my amount is 2500.56, the it must display as
TWO THOUSAND FIVE HUNDRED AND FIFTY SIX PAISA ONLY
In case my amount is 2500.00, the it must display as
TWO THOUSAND RUPEES ONLY.
Is there any solution for this, I'm in need of urgent. Can anyone help me out.
Regards,
Jai
To Everybody. When I run the report to display the Amount,
example
Amount = 20000
I need the Amount in words so I used the report (1401) in my report and it's working fine. It displays the Amount in words as
TWO THOUSAND RUPEES AND ZERO PAISA ONLY
But, I don't need to display this Zero Paisa in my report.
In case my amount is 2500.56, the it must display as
TWO THOUSAND FIVE HUNDRED AND FIFTY SIX PAISA ONLY
In case my amount is 2500.00, the it must display as
TWO THOUSAND RUPEES ONLY.
Is there any solution for this, I'm in need of urgent. Can anyone help me out.
Regards,
Jai
Jai
0
Comments
-
hello njaiku
In the function FormatNoText you need change the code to this.CLEAR(NoText); NoTextIndex := 1; NoText[1] := '****'; IF No < 1 THEN AddToNoText(NoText,NoTextIndex,PrintExponent,Text026) ELSE BEGIN FOR Exponent := 4 DOWNTO 1 DO BEGIN PrintExponent := FALSE; Ones := No DIV POWER(1000,Exponent - 1); Hundreds := Ones DIV 100; Tens := (Ones MOD 100) DIV 10; Ones := Ones MOD 10; IF Hundreds > 0 THEN BEGIN AddToNoText(NoText,NoTextIndex,PrintExponent,OnesText[Hundreds]); AddToNoText(NoText,NoTextIndex,PrintExponent,Text027); END; IF Tens >= 2 THEN BEGIN AddToNoText(NoText,NoTextIndex,PrintExponent,TensText[Tens]); IF Ones > 0 THEN AddToNoText(NoText,NoTextIndex,PrintExponent,OnesText[Ones]); END ELSE IF (Tens * 10 + Ones) > 0 THEN AddToNoText(NoText,NoTextIndex,PrintExponent,OnesText[Tens * 10 + Ones]); IF PrintExponent AND (Exponent > 1) THEN AddToNoText(NoText,NoTextIndex,PrintExponent,ExponentText[Exponent]); No := No - (Hundreds * 100 + Tens * 10 + Ones) * POWER(1000,Exponent - 1); END; END; //S001 Start if No <> 0 then begin AddToNoText(NoText,NoTextIndex,PrintExponent,Text028); AddToNoText(NoText,NoTextIndex,PrintExponent,FORMAT(No * 100) + '/100'); end; //S001 End IF CurrencyCode <> '' THEN AddToNoText(NoText,NoTextIndex,PrintExponent,CurrencyCode) ELSE AddToNoText(NoText,NoTextIndex,PrintExponent,Text1020000);
0 -
Hi,
Thank you very much. But when i used this code the result is tremendous bcoz
For 480,824 it displays as
Four Hundred Eighty thousand Eight Hundred twenty four Rupees
but actually i need it to be display as
Four Lakhs and Eighty thousand and Eight Hundred and Twenty four Rupees .
Another Example
For Rs 1 it displays as
One Rupees
but actually i need it to be display as
One Rupee.
Another Example is 2970.76
it displays as
Two thousand Nine Hundred seventy and 76/100 rupees.
but it need to be display as
Two thousand and Nine hundred and seventy rupees and seventy six paisa.
Please help me out for this solutionJai0 -
well the new request you are asking to add Lakhs, which the western world doesn't have a name for. well it's 100 thousand.
I could write the code for you, but I believe you can use the example I have given you above and change it.0 -
Hi,
I have tried it with your coding, but i am not getting the result.Could you please help me out.Jai0 -
Are you a developer or end user? Have you tried to modify the code?0
-
Microsoft India should have addressed this as a part of the Indian Localization. I would contact them, since printing of Checks correctly is generally considered as a legal requirement for the country version.David Singleton0
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