Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

report extension for sum total quantity in sales invoice

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

Categories:
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    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,217 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,025 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

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,564 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,651 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans