web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
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
    IB-29041624-0 Profile Picture
    1,191 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
    102,054 Super User 2026 Season 1 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,687 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,041 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 974 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans