web
You’re offline. This is a read only version of the page.
close
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

I need to display sum of all lines quantities available on Sales order list page

(0) ShareShare
ReportReport
Posted on by

I need to display sum of all lines quantities available on Sales order list page 

Any help would be appreciated

I have the same question (0)
  • Suggested answer
    Inge M. Bruvik Profile Picture
    1,111 Moderator on at

    The quantity for one spesific item?

    That you can find on the item page in the field quantity on sales order.

    Or are you talking about another quantity ?

    pastedimage1658855913239v1.png

  • Suggested answer
    YUN ZHU Profile Picture
    95,597 Super User 2025 Season 2 on at

    Hi, you can refer Amount to create a flowfield field.

    pastedimage1658886821718v1.png

    pastedimage1658886879229v2.png

    For example,

    pastedimage1658887611699v4.png

    pastedimage1658887604110v3.png

    tableextension 50111 MyExtension extends "Sales Header"
    {
        fields
        {
            field(50100; Quantities; Decimal)
            {
                CalcFormula = Sum("Sales Line".Quantity WHERE("Document Type" = FIELD("Document Type"),
                                                             "Document No." = FIELD("No.")));
                Caption = 'Quantities';
                Editable = false;
                FieldClass = FlowField;
            }
        }
    }
    
    pageextension 50111 MyExtension extends "Sales Order List"
    {
        layout
        {
            addafter(Amount)
            {
                field(Quantities; Rec.Quantities)
                {
                    ApplicationArea = All;
                }
            }
        }
    }

    Hope this helps.

    Thanks.
    ZHU

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,917

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,161 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,025 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans