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...
Answered

Suggest Vendor Payments - Checking vendor due date

(3) ShareShare
ReportReport
Posted on by 180
Hi all,
 
Before making an experience idea I'd like to see whether anyone has any experience with getting the Suggest Vendor Payments report to check due dates on vendors, when Vendor Priority is set to TRUE and an Available Amount is set and where the vendor card has no priority e.g is 0. 
  
From looking at the AL code it appears as though there are 2 chunks that check whether to include or exclude a vendor. 
 
Code 1:
 
if UsePriority then begin
    SetCurrentKey(Priority);
    SetRange(Priority, 1, 2147483647);
    UsePriority := true;
end;
 
 
This block - If UsePriority is checking whether the vendor has a priority of 1..2147483647 which in this scenario would exclude vendors. 
 
 
 
Code 2:
 
if UsePriority and not StopPayments then begin
    Reset();
    CopyFilters(Vend2);
    SetCurrentKey(Priority);
    SetRange(Priority, 0);
    if FindSet() then
        repeat
            ...
        until (Next() = 0) or StopPayments;
end;
 
 
This block is doing the default to ensure that a vendor payment is included where the priority is 0. However, if you have a list of outstanding vendor entries that look something like the below:
 
Vendor No. Amount Due Date
V01 5000.00 31/03/25
V02 2500.00 28/02/25
V03 2500.00 28/02/25
 
When the suggest vendor payment is run and you set a Last Payment Date of 31/03/25 and have Vendor priority to TRUE and an Available Amount of 5000.00 the document that will be inserted is V01 rather than V02 and V03, despite these having an earlier due date. 
 
My expectation is that the Vendor No is irrelevant and that if the vendor card has no priority that Due date on the vendor ledger entry is considered rather than the order of the vendor no. Wondering if anyone has any experience in considering due dates during the suggest vendor payment and/or whether this is even currently possible?
 
Thanks!
I have the same question (0)
  • Suggested answer
    Khushbu Rajvi. Profile Picture
    19,137 Super User 2025 Season 2 on at
    Suggest Vendor Payments - Checking vendor due date
  • Suggested answer
    YUN ZHU Profile Picture
    92,233 Super User 2025 Season 2 on at
    Suggest Vendor Payments - Checking vendor due date
  • Verified answer
    Jeffrey Bulanadi Profile Picture
    8,431 on at
    Suggest Vendor Payments - Checking vendor due date

    Hi Jacob,

    This seems to be standard Business Central functionality, and your analysis is spot on—the current setup doesn’t prioritize due dates for Priority 0 vendors as expected.

    To achieve your desired outcome, you could:

    • Assign priorities to all vendors to explicitly control the payment order.
    • Customize the Suggest Vendor Payments report to sort Priority 0 vendors by due date.

     

    If you find this helpful, feel free to mark it as the suggested answer!

    Cheers
    Jeffrey Bulanadi

  • Gerardo Rentería García Profile Picture
    23,570 Most Valuable Professional on at
    Suggest Vendor Payments - Checking vendor due date
  • Suggested answer
    RockwithNav Profile Picture
    8,225 Super User 2025 Season 2 on at
    Suggest Vendor Payments - Checking vendor due date

    Honestly, I’ve never faced any issues when executing the Suggest Vendor Payments function. Date entered in the Last Payment Date field, the system still brings in any pending entries. If Priority is selected, it will override other criteria.

     

    My suggestion is: if the function isn’t bringing the expected entries, why not go to the Vendor Ledger Entries page, select the vendors you want to process, choose the relevant entries, and then click Pay Vendor. This will bring all selected entries into the Payment Journal using the information you provided in the dialog box.

     
     
     

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…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

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

#1
Nimsara Jayathilaka. Profile Picture

Nimsara Jayathilaka. 4,197

#2
Rishabh Kanaskar Profile Picture

Rishabh Kanaskar 3,673

#3
Sumit Singh Profile Picture

Sumit Singh 2,907

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans