Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics NAV (Archived)

customer ledger entries form additional field

Posted on by Microsoft Employee

hi i have copied  a new form the customer ledger entries list form, in the new list form I want to add a column called balance.(where I can filter, balance >0, to see outstanding and document type=invoice)

balance field is in Customer table.. im sure, this requires some coding. Appreciate if you can provide some coding..

We are doing because, the users wants the balance to be showed in the New customer ledger enteries form, rather than looking in to the customer card..

help is appreciated.. thanks

*This post is locked for comments

  • Verified answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: customer ledger entries form additional field

    In that case, create flowfield in Cust. Ledger Entry as follow. 

    This way, you would be able to filter the field (> 0)..

    4466.1.jpg

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: customer ledger entries form additional field

    it is working thanks!!!, but I want to show list of record only those custbalance is >0.. How can I achieve it..

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: customer ledger entries form additional field

    Hi,

    You can always filter on "Document Type" & "Remaining Amount" field in Customer Ledger Entries page to get the required details.

    There is no point in displaying same balance in all the lines. 

    3386.1.png

    If at all you need Balance field, you can write following code at Page OnAfterGetRecord event or create the flowfield as needed.

    CustBalance := 0;

    IF Cust.Get("Customer No.") Then

    Begin

    Cust.Calcfields("Balance (LCY)");

    CustBalance := Cust."Balance (LCY)"

    End;

    This way, you can calculate & use CustBalance on the newly created page..

    Please note that, you can face certain performance issue due to the same. MS does not recommend to use calculated field or flowfield on list page.

    Hope this helps.

  • Suggested answer
    Alexander Ermakov Profile Picture
    Alexander Ermakov 28,094 on at
    RE: customer ledger entries form additional field

    How would this new field be different from Remaining Amount? Or, do you want the same customer balance be presented in all customer ledger entries? If so, you need to add a field with a FlowField type, and make a filtering setting as a sum by Detailed Customer Ledger entries. In fact, you can copy the same setting of flow field as in the balance field of the customer card.

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans