Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

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

(0) ShareShare
ReportReport
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 74,036 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,425 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

News and Announcements

Announcing Category Subscriptions!

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 Verified Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,370 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans