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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested Answer

Customer Statement report

(0) ShareShare
ReportReport
Posted on by

Hello All,

One of my customer wanted to group their payment to particular Invoice in Customer ledger entry Report in Business Central SaaS.

Could you please suggest if there is any way we can do that. Its standard Customer statement report-10072.

Any suggestion would be highly appreciated.

Thanks alot.

Amy

  • Suggested answer
    Binesh Profile Picture
    7,887 on at

    Hello,

    You can not extend the Reports, But you can achieve your requirement by follow the below steps.

    1. Copy the standard Report(It can be available in the DVD under Base Applications).
    2. Customize the report as per your requirements.
    3. Subscribe the "Reporting Triggers" codeunit as shown below.
        [EventSubscriber(ObjectType::Codeunit, Codeunit::"Reporting Triggers", 'SubstituteReport', '', false, false)]
        local procedure SubstituteReport(ReportId: Integer; RunMode: Option; RequestPageXml: Text; RecordRef: RecordRef; var NewReportId: Integer);
        begin

            if ReportId = 10072 then
               NewReportId := 70001;    //This is your new Customer Statement report
        end;
  • Mithila Lishan Profile Picture
    92 on at

    In Standard Report include Customer Ledger Entry Data Item and Detailed Cust Ledger entry, So You have to Filter  Detailed Cust Ledger entry Using 

    DataItemLink = "Cust. Ledger Entry No." = field("Entry No."); --> Connect Customer Ledger Entry and Detailed Cust Ledger entry
    DataItemTableView = where("Document Type" = filter("Payment"), Unapplied = filter(false), "Entry type" = filter(Application)); --> this code help to filter Payment Details in  Detailed Cust Ledger entry
    You Have to Code Like Below
    dataitem("Cust. Ledger Entry"; "Cust. Ledger Entry")
    {
        
     dataitem("Detailed Cust. Ledg. Entry"; "Detailed Cust. Ledg. Entry")
                {
                    DataItemLink = "Cust. Ledger Entry No." = field("Entry No.");
                    DataItemTableView = where("Document Type" = filter("Payment"), Unapplied = filter(false), "Entry type" = filter(Application));
                 }
    }
    This Code Help You To Find, Payment of  Invoices in Customer Ledger entry, After That You Have To Group Those Data Like Below
    8662.report.PNG
    In This Report You can See 1 and 2 
    1 ----  is invoice Number of Customer Ledger entry
    2 ----  this is shown payment document numbers related invoice which is shown in customer ledger entry

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

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 728 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 545 Super User 2026 Season 2

#3
AndrewThomas81 Profile Picture

AndrewThomas81 328 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans