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...
Answered

AL Help

(0) ShareShare
ReportReport
Posted on by 240

Dear Experts

In Sales order List page, how can we bring the Total of Remaining amount of all the line items which was not invoiced

Thankyou in Advance

I have the same question (0)
  • Suggested answer
    IB-29041624-0 Profile Picture
    1,191 Moderator on at

    There is already a function for that in the system. Go to statistics (F7) and you will see exactly that data there.

  • LearnBC Profile Picture
    240 on at

    Sorry i was mistaken while selecting the column

    actually, required to total of already invoiced

    Total = Sum (Qty to Invoiced * Unit Price) all line Items

    Invoiced-So-Sum.jpg

  • Suggested answer
    DAnny3211 Profile Picture
    11,423 Super User 2026 Season 1 on at

    Hi

    you have to do a customisation to get this information

    you should make a function to be exposed on the page that performs that calculation

    DAniele

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    You have already the Fact box available for all the balances, see the image, see if it help you.

    pastedimage1667996623353v1.png

  • LearnBC Profile Picture
    240 on at

    Hello Nithin

    thanks for your reply

    we need from this Sales order what it the Total value of partially invoiced to the list page. (it is not in Fact box also. so that we can easily understand from list page how much amount is partially invoiced from the Total Value)

    Total = Sum (Qty Invoiced * Unit Price) all line Items

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    In that case you have customized that page. so that you can do the run time calculation based on the qty. invoiced and display.

  • Suggested answer
    Nitin Verma Profile Picture
    21,812 Moderator on at

    pageextension 62007 "Sales Order PartialValue" extends "Sales Order List"

    {

       layout

       {

           addafter("Amt. Ship. Not Inv. (LCY)")

           {

               field("Partial Invoiced"; PartialInvoiced)

               {

                   ApplicationArea = All;

               }

           }

       }

       trigger OnAfterGetRecord()

       var

           PartialQty: Record "Sales Line";

       begin

           PartialInvoiced := 0;

           PartialQty.Reset();

           PartialQty.SetRange("Document Type", PartialQty."Document Type"::Order);

           PartialQty.SetRange("Document No.", Rec."No.");

           PartialQty.SetFilter("Quantity Invoiced", '>%1', 0);

           if PartialQty.FindSet() then

               repeat

                   PartialInvoiced += PartialQty."Quantity Invoiced" * PartialQty."Unit Price";

               until PartialQty.Next() = 0;

       end;

       var

           PartialInvoiced: Decimal;

    }

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 580 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 480 Super User 2026 Season 1

#3
Grigorios Mavrogeorgis Profile Picture

Grigorios Mavrogeorgis 261 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans