Skip to main content

Notifications

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

Include a new field in the calculation of the grand total

Posted on by 26

Hello folks,

I need your help!

I have created a new field in the sales rows "Print rows".

If this field is ticked in the row, it will then also be printed in a report.

Now this new field has no influence on the total of the amounts.

However, I now have the problem that I have two lines in the sales order, each with a total of 100 euros. Together, these are 200 euros for each quantity of 1.

However, I have only hooked the first line.

When I print the document, I only get one line in the printout, but the total for both lines...do you know how I can adjust the calculation so that my new field is taken into account in the calculation?

Thank you very much.

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 73,411 Super User 2024 Season 2 on at
    RE: Include a new field in the calculation of the grand total

    Hi, I think it's still a problem with the logic you wrote.

    Please check it out.

    Thanks.

    ZHU

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Include a new field in the calculation of the grand total

    Hi,

    Generally it can be happened if we have a Sales line filters available on the Request while running the report, but unfortunately we dont have those filters available so you need to extend this report. Please refer the below link how to extent the standard report.

    docs.microsoft.com/.../devenv-report-ext-object

  • Maddin Profile Picture
    Maddin 26 on at
    RE: Include a new field in the calculation of the grand total

    The report I am trying to extend is the standard report for order confirmation.

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,091 Super User 2024 Season 1 on at
    RE: Include a new field in the calculation of the grand total

    Hi,

    I think you have to extend your current report, as of now there is no Filters available of Sales Line while printing Test report or confirmation report from sales order. I am not sure which specifically report id you are talking here.

    Thanks.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,104 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans