Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Remaining Balance on Customer Documents - SQL

(0) ShareShare
ReportReport
Posted on by

I am trying to run a detailed debtors listing through SQL to provide a workflow for credit controllers without needing to log in to Nav.

I cannot find the table/view which shows remaining balance for customer ledgers, I have tried $Cust_ Ledger Entry]  and $Detailed Cust_ Ledg_ Entry]

*This post is locked for comments

  • Suggested answer
    I Gusti Made Ari Profile Picture
    3,594 on at
    RE: Remaining Balance on Customer Documents - SQL

    Hi, remaining amount is calculated field (no physical field for it in SQL)  . it is calculated from Detailed Cust. Ledger Entry linked by entry no.

    Below is the sample script on how to calculate :

    SELECT

         CLE.[Customer No_]

         ,CLE.[Document No_]

         ,SUM(DCLE.Amount) as 'Remaining Amount'

     FROM [dbo].[CRONUS New Zealand Ltd_$Cust_ Ledger Entry] CLE

     LEFT OUTER JOIN [dbo].[CRONUS New Zealand Ltd_$Detailed Cust_ Ledg_ Entry] DCLE ON DCLE.[Cust_ Ledger Entry No_] = CLE.[Entry No_]

     GROUP BY  CLE.[Customer No_],CLE.[Document No_]

  • Community Member Profile Picture
    on at
    RE: Remaining Balance on Customer Documents - SQL

    <deleted>

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

Kudos to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Microsoft Dynamics NAV (Archived)

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans