Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

how to get vendor payment details in Payment voucher?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Dear Experts,

We have a requirement to get vendor remaining payment details which is <0, >0  and not equal to 0  into payment voucher. Kindly advise.

Thanks

With Regards'

Mandeep Kaur

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to get vendor payment details in Payment voucher?

    Hi Amol,

    Yes, In voucher register Ineed changes.

    Let me explain what I have tried on test DB, I have added  two tables in the Vendor Register Report

    1 DataItem Detailed Vendor Ledg. Entry <Detailed Vendor Ledg. Entry>

     VendLedgEntry."Document Type" VendDocType

    VendLedgEntry."Document No." VendDocNo

    VendLedgEntry."Document Date" VendPostingDate

     VendLedgEntry."Due Date" VendDueDate No

    "Detailed Vendor Ledg. Entry".Amount VendAppliedAmount

     VendLedgEntry.Amount VendDocAmount

     VendLedgEntry."Remaining Amount" VendDocRemAmount

    2 DataItem Detailed Cust. Ledg. Entry <Detailed Cust. Ledg. Entry>

     CustLedgEntry."Document Type" CustDocType

    CustLedgEntry."Document No." CustDocNo

     CustLedgEntry."Document Date" CustPostingDate

    CustLedgEntry."Due Date" CustDueDate

     "Detailed Cust. Ledg. Entry".Amount CustAppliedAmount

     CustLedgEntry.Amount CustDocAmount

     CustLedgEntry."Remaining Amount" CustDocRemAmount

    These are the fields which I have taken from particular tables and please find attached screenshot of the report.

    vendor-register-report.png

    Please advise

    Thanks

    With Regards

    Mandeep Kaur

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: how to get vendor payment details in Payment voucher?

    Do you mean to say that when user post the voucher it is displaying voucher register report and you want changes in that report ?

    You need to make the changes by taking vendor ledger entry table as dataitem in report and display it.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to get vendor payment details in Payment voucher?

    Hi Amol,

    Sorry for late reply,  Yes, I want the details in the voucher and when users click on post & print, It shows Voucher register report so I have done the changes in the report layout and code.

    Please advise.

    Thanks

    With Regards

    Mandeep Kaur

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: how to get vendor payment details in Payment voucher?

    Mandeep,

    Where you are displaying the vendor ledger entry ? Is it in voucher or somewhere?

    If you want to display the entries in voucher entry then you need to write code in report.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to get vendor payment details in Payment voucher?

    Hi Amol,

    Yes, I need to apply against payment voucher with all outstanding / balance amount.

    I have written this code under vendor ledger entry page action tab(Print Voucher). Is this correct, Please verify.

    IF GLEntry.FIND('-') THEN

     REPORT.RUNMODAL(REPORT::"Posted Voucher",TRUE,TRUE,GLEntry);

    IF ((Amount > 0)) OR

      ((Amount < 0))

    THEN BEGIN

     "Remaining Amount" := Amount;

    END ELSE BEGIN

     "Remaining Amount" := 0;

    END;

    Thanks

    With Regards

    Mandeep Kaur

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: how to get vendor payment details in Payment voucher?

    Hi Mandeep

    You need to customize the voucher report to cater this requirement and you will get all details from Vendor ledger entry

    Do you want to display the invoices which is applied against the payment voucher or all the outstanding invoices irrespective of payment voucher applied.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to get vendor payment details in Payment voucher?

    Hi Amol,

    Thanks for your reply,

    User need the details of remaining amount in the payment voucher itself, Either Cash Voucher/ Bank Payment Voucher in the form of printout. They want when they take a printout of voucher they get these details in printout as well.  Kindly advise.

    Thanks

    With Regards

    Mandeep Kaur

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: how to get vendor payment details in Payment voucher?

    Hi Mandeep

    In Payment voucher you can click on Apply Entries button where you can find the outstanding invoices to paid where user can see the outstanding invoices and apply them against the payment voucher.

    As well as user can look into report -Aged Account Payable also if they want to check the outstanding invoices

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: how to get vendor payment details in Payment voucher?

    Hi Amol,

    Thanks for your reply,

    Actually, we don't need report, user need the details of remaining amount in the payment voucher itself, Either Cash Voucher/ Bank Payment Voucher. Kindly advise.

    Thanks

    With Regards

    Mandeep Kaur

  • Suggested answer
    Amol Salvi Profile Picture
    Amol Salvi 18,694 on at
    RE: how to get vendor payment details in Payment voucher?

    Hi Mandeep

    You need to check the vendor ledger entry and check for outstanding invoices where remaining amount is not equal to zero

    Based on Vendor selected in Payment voucher you can display the details in report.

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,489 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,305 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans