Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

Issue with number formatting on document layouts when using the AutoFormat codeunit

Posted on by 5

After the update of Business Central 20, we are experiencing some issues in the report layouts for sales invoices (Word layout).

Even when using the standard sales invoice layout (1306), the formatting of the numbers is not (always) correct on the layout. After some investigation, we found that using the Auto Format codeunit (cdu 45) will now use the language ID that you set in the report (CurrReport.Language). That poses a big problem since we have customers that want to send out documents in (e.g.) English while the number formatting should still be according to their own regional settings. Before the BC20 update, the AutoFormat always returned the correct numbers.

I don't know whether this is a bug or not but the fact is that our customers are getting wrong output now on their documents. If someone has any idea on how to fix it, your help would be greatly appreciated 

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 69,657 Super User 2024 Season 2 on at
    RE: Issue with number formatting on document layouts when using the AutoFormat codeunit

    Hi, If this is a global issue with CurrReport.Language, I feel like it might be fixed in the next CU. It is recommended that you submit to Microsoft.

    In addition, if you are in a hurry, I think you can try the following method.

    (+) How to change field format output for word template? - Dynamics 365 Business Central Forum Community Forum

    Hope this helps.

    Thanks.

    ZHU

  • Suggested answer
    Dallefeld Profile Picture
    Dallefeld 11,423 User Group Leader on at
    RE: Issue with number formatting on document layouts when using the AutoFormat codeunit

    Reach out to your partner. There have been lots of issues with BC 20. Your partner should know the status or can check on this issue.

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans