web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Amount in Words on A/P Check

(0) ShareShare
ReportReport
Posted on by 3,510

Hi:

I'm modifying Report ID 10412 (Report Selection - Bank), which is the A/P check.

Below is a screenshot of the Amount in Words, and below that screenshot are the two formula expressions used for this.  (My guess is that the second formula is some sort of "overflow" field.)

I need for the asterisks in the beginning to appear at the end, instead.  And, the phrase "US DOLLARS" need not appear.

How do I meet these two requirements?

Thank you!

John

pastedimage1657212850346v1.png

=Cstr(Choose(97,Split(Cstr(ReportItems!FooterInfo.Value), Chr(177))))

=Cstr(Choose(98,Split(Cstr(ReportItems!FooterInfo.Value), Chr(177))))

I have the same question (0)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    It is set in the code for the report. So either remove it in RDLC or try with a report extension. RDLC seems like a better plan.

    here is the code that adds it:

    procedure FormatNoText(var NoText: array[2] of Text[80]; No: Decimal; CurrencyCode: Code[10])
    var
    PrintExponent: Boolean;
    Ones: Integer;
    Tens: Integer;
    Hundreds: Integer;
    Exponent: Integer;
    NoTextIndex: Integer;
    begin
    Clear(NoText);
    NoTextIndex := 1;
    NoText[1] := '****';

    if No < 1 then
    AddToNoText(NoText, NoTextIndex, PrintExponent, Text026)
  • Suggested answer
    JAngle Profile Picture
    133 on at

    Method to try in RDLC: docs.microsoft.com/.../ltrim-rtrim-and-trim-functions

  • john.ellis Profile Picture
    3,510 on at

    Thanks, Josh!

    Do I place that code inside of a text field on the report?  I'm not very swift on programming.  :)

    John

  • Suggested answer
    Dallefeld Profile Picture
    211 User Group Leader on at

    Do you have a currency code for USD setup and is the description US Dollars? What happens if you simply remove the description?

  • Suggested answer
    JAngle Profile Picture
    133 on at

    GB version looks a bit different to yours but effectively the Right() and Len() functions will do what you need. Adapt this to fit yours: right(Code.GetData(1,2),len(Code.GetData(1,2))-4)

    Gives you this type of output:

    pastedimage1657224354538v1.png

  • john.ellis Profile Picture
    3,510 on at

    But, where do I "put that coding"?  That's what I need help with.  When it comes to programming BC, I don't even know where to begin.

  • john.ellis Profile Picture
    3,510 on at

    Also need the asterisks moved.  

    I'm leery about messing with currency stuff just to make a modification.

    Thanks, though!

  • Suggested answer
    JAngle Profile Picture
    133 on at

    At the bottom of your original post you have what looks to be content from a text box on a RDLC layout. That is where the code should go.

  • john.ellis Profile Picture
    3,510 on at

    Thanks, Josh!  Do I simply paste the code from the original posting into the text box?

    And, since there are two fields for amount in words from what I see, do I paste into both text boxes?

    John

  • Suggested answer
    JAngle Profile Picture
    133 on at

    Not quite a copy/paste. Add the suggested functions to the existing content. You can copy the existing content to paste it into the suggested functions as you need the string twice. Give it a try

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,362

#2
YUN ZHU Profile Picture

YUN ZHU 867 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 607

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans