Skip to main content

Notifications

Small and medium business | Business Central, N...
Suggested answer

Alternative way to calculate vendor summary aging in reports.

Posted on by 60

Greetings experts,

I am trying to find an alternative way to calculate the summary aging of a vendor without using the detailed vendor ledger entry.
My goal is to create an alternative report to the system report since i want to add one more period before the "..after" period.

I have checked the system report  and after investigating the code, i was able to add another period and the code worked perfectly, but my senior has suggested to create my own code from scratch to get familiar more with arrays and flow fields used which I did using the detailed vendor ledger entry and the code worked but i had some fixes to make, but my senior pointed out that there should be an alternative to it like using the balance due in the vendor which should make my code faster.

After checking the original system report (vendor summary aging) i noticed that they did use the vendor but only to get the "..before" period which is everything before the filter starting date. I wondered why they would only use that once if it is faster, so i tried to replicate the code for all the periods and i think i just found why they did not.

If my junior testing skills are anything to go by, if we use the vendor balance due with a timeframe from 5/1/2023 till 10/1/2023, it will still include the balance due of 4/1/2023 meaning that i will have a wrong calculation.

My question remains, is there any alternative to calculating the balance due on each period that is faster than using the detailed vendor ledger entry ?
Hope my question is not very idiotic, and my knowledge is still limited so any exposure would be greatly appreciated.

Thank you in advance!

  • Suggested answer
    Marco Mels Profile Picture
    Marco Mels on at
    RE: Alternative way to calculate vendor summary aging in reports.

    Hello,

    Best probably is to ask you partner for additional assistance on this matter.

    Thank you.

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!

Community AMA December 12th

Join us as we continue to demystify the Dynamics 365 Contact Center

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,149 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans