Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Answered

Conversion of amount from digits to amount in words

Posted on by

Hi All,

Am trying to convert amount from digit to words into words in Al. I have followed the link below but am getting lost somewhere in the middle. Am I supposed to access report 1401 and copy the two procedures or by mere declaration (which I can't understand) can sort me out?.


https://community.dynamics.com/nav/b/dynamicsnavcloudfronts/posts/procedure-to-display-the-amount-in-words-in-a-report-of-microsoft-dynamics-nav

Also is there any other alternative?

Kindly assist. 

  • Romryan Profile Picture
    Romryan on at
    RE: Conversion of amount from digits to amount in words

    In addition I had to declare NoText too.

  • Verified answer
    tanya07 Profile Picture
    tanya07 1,554 on at
    RE: Conversion of amount from digits to amount in words

    Hello,

    As per this mentioned post , this is calling(declaration) those two methods in a custom report from a standard report 1401 which has the definitions of the methods ( InitTextVariables , FormatNoText)

    Custom Report:

    ...

    Onaftergetrecord()

    {

    AmountVendor:= ROUND("Purchase Header"."Amount to Vendor",0.01);

    RepCheck.InitTextVariable;  //calling method 1 from report 1401

    RepCheck.FormatNoText(NoText,AmountVendor,"Purchase Header"."Currency Code"); //calling method 2 from report 1401

    AmountInWords:=NoText[1];

    }

    ...

    For an alternative you can try this - beginnersnav.blogspot.com/.../convert-number-to-words.html

    Hope this helps :)

    Thanks,

    Tanya

    Please verify the answer if it answers your query.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans