Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

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

How to Display the Total Amount as Vendor in Customer Card

(0) ShareShare
ReportReport
Posted on by 63

Hi,
Balance as Vendor in Customer Card shows only one Vendor's Balance even when the Customer Contact has the relationship with multiple Vendors.
Is it possible to display total amount of all Vendors linked to the contact of the Customer?

Contact can have multiple Vendors and Customers, which looks like many to many relationships with business relation function.

Here is the example:
Cust-A has the relationship to 01-Vendor and 02 Vend with Contact Cust-A.
Account Payable
 01-Vendor : 243.75
 02 Vend : 120.13
 Total : 363.88
Account Receivable
 Cust-A : 8,117.50

I want to display the total account payable in Balance as Vendor of Customer Card.

pastedimage1667879477882v1.png

pastedimage1667879487735v2.png

pastedimage1667879494504v3.png

pastedimage1667879602777v4.png

  • Y.Nakayama Profile Picture
    63 on at
    RE: How to Display the Total Amount as Vendor in Customer Card

    Thank you, Daniele and ZHU!

    I understood Balance As Vendor is not a FlowField, and so customization is needed.

    I don't understand why one Contact is able to be set multiple codes for Vendor and Customer in Contact Business Relations.
    It looks like 1 to Many or Many to Many relations in Contact Business Relations.
    It would be a cause to misunderstand one Customer can link to multiple Vendors.

    pastedimage1668217623941v1.png

  • Verified answer
    YUN ZHU Profile Picture
    81,789 Super User 2025 Season 1 on at
    RE: How to Display the Total Amount as Vendor in Customer Card

    Hi, I've investigated the standard code before, and unfortunately, it doesn't support 1-to-many. The standard doesn't take into account multiple vendors, either for getting values, or for Drilldown. So this requires customization if you need it.

    pastedimage1667952750751v1.png

    pastedimage1667952796764v2.png

    More details: https://yzhums.com/23556/

    Hope this helps.

    Thanks.
    ZHU

  • Verified answer
    DAnny3211 Profile Picture
    9,276 Moderator on at
    RE: How to Display the Total Amount as Vendor in Customer Card

    hi

    customization should be done in AL code

    creating a flow field with the same logic as the Balance as Vendor but adding up the vendor amounts linked to the customer

    DAniele

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 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,261 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 233,013 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans