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

Community site session details

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

Business Central RDLC: Running Total Issue with Currency Field in Customer Statement Default Report

(1) ShareShare
ReportReport
Posted on by 62
Hi,
I am working with a Business Central default Customer Statement report that uses RDLC Default layout:
1. When the currency field is empty, one table is shown in the report output.
2. When the currency field has a value, a separate table is shown in the report output.
Below is a screenshot example of the default report format.
 
My requirement:
I want the report to always show only one format (one table), regardless of whether the currency field is empty or not.
How can I modify the RDLC to display only one table for all cases?
I am trying this code to display the output as shown in the screenshot below.
I have created a report using one table, but I am facing running total issues. I tried the following Report Extension code
  modify(DtldCustLedgEntries)
        {
            RequestFilterFields = "Initial Entry Global Dim. 1", "Initial Entry Global Dim. 2";
            trigger OnAfterAfterGetRecord()
            var
                custledentries: Record "Cust. Ledger Entry";
                GLSetup: Record "General Ledger Setup";
            begin
               
                if "Currency Code" = '' then begin
                    "Currency Code" := GLSetup."LCY Code";
                end;
            end;
        }
 
        modify(CustLedgEntry2)
        {
            trigger OnAfterAfterGetRecord()
            var
                GLSetup: Record "General Ledger Setup";
            begin
                if "Currency Code" = '' then begin
                    "Currency Code" := GLSetup."LCY Code";
                end;
            end;
        }
Below is the screenshot of my required format.
I have highlighted the Original Amount and Running Total columns in green.
 
I have the same question (0)

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,791

#2
YUN ZHU Profile Picture

YUN ZHU 2,091 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 2,090

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans