Skip to main content

Notifications

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

  • 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,272 Super User 2024 Season 1 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,091 Super User 2024 Season 1 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

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