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...
Suggested answer

report extension for sum total quantity in sales invoice

(0) ShareShare
ReportReport
Posted on by 10

Hello Professional.

I use business central 18.0 version.


am currently have some challenges summing up quantity numbers on by invoice.

I intend doing this via report extension .  

Kindly need an assistance.

Best regards.

 pastedimage1671173345292v1.png

  • RE: report extension for sum total quantity in sales invoice

    it will be something like this,

    reportextension 50000 "MyExtension" extends "Standard Sales - Invoice"

    {

       dataset

       {

           modify(Line)

           {

               trigger OnAfterAfterGetRecord()

               var

                   myInt: Integer;

               begin

                   CalcFields(Amount);

                   quantity += Amount

               end;

           }

           add(Header)

           {

               column(quantity; quantity) { }

           }

       }

       var

           quantity: Decimal;

    }

  • Austin360_ Profile Picture
    Austin360_ 10 on at
    RE: report extension for sum total quantity in sales invoice

    Please I need help in summing total Quantity using report extension  

  • Austin360_ Profile Picture
    Austin360_ 10 on at
    RE: report extension for sum total quantity in sales invoice

    need assistances please.

  • Austin360_ Profile Picture
    Austin360_ 10 on at
    RE: report extension for sum total quantity in sales invoice

    Am having error

  • Austin360_ Profile Picture
    Austin360_ 10 on at
    RE: report extension for sum total quantity in sales invoice

    pastedimage1671186706771v1.png

    [quote user="Austin360_"]

    Nice video ,

    But I still dont have an idea how to sum all Quantity

    [/quote]
  • Austin360_ Profile Picture
    Austin360_ 10 on at
    RE: report extension for sum total quantity in sales invoice

    Nice video ,

    But I still dont have an idea how to sum all Quantity

  • Austin360_ Profile Picture
    Austin360_ 10 on at
    RE: report extension for sum total quantity in sales invoice

    Thanks . I will and revert.

  • Suggested answer
    DAnny3211 Profile Picture
    DAnny3211 9,274 Moderator on at
    RE: report extension for sum total quantity in sales invoice

    hi

    create a variable on the header where you sum the amounts so that you can retrieve it from the word

    look this

    www.youtube.com/watch

    learn.microsoft.com/.../ui-how-add-fields-word-report-layout

    learn.microsoft.com/.../devenv-howto-report-layout

    DANiele

  • Suggested answer
    Nitin Verma Profile Picture
    Nitin Verma 21,309 Moderator on at
    RE: report extension for sum total quantity in sales invoice

    In that case you have to write your custom code in Report extension to calculate the values and then show it in Report.

    Thanks.

  • Austin360_ Profile Picture
    Austin360_ 10 on at
    RE: report extension for sum total quantity in sales invoice

    Thanks for your quick response.

    The report is on word.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans