Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested answer

How to get the payment journal voucher against the Invoices selected to settle using X++

(0) ShareShare
ReportReport
Posted on by 215

Hello,

Hope you are doing great!

Could you please help me with providing the table relations or code snippet where I can find the Payment journal voucher against the marked invoice to settle?

In my case I have invoice ID, DocumentDate and InvoiceAmount and I want to know the payment journal voucher against this invoice.

The relation VendinvoiceJour.LedgerVoucher==VendTrans.lastSettledVoucher not providing the proper payment  journal voucher. And it would be empty if the Payment journal is not posted. 

Any suggestions would be very helpful. Thanks in advance!

Sandeep.

  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    10,829 Moderator on at
    RE: How to get the payment journal voucher against the Invoices selected to settle using X++

    Hi MSandy,

    If you mean marked transaction on payment journal, you can use "SpecTrans" table.

    pastedimage1638380216060v2.png

    pastedimage1638380189149v1.png

    You can also use standard entities for payment journal line settled invoice.

    pastedimage1638380325524v3.png

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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

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

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,860 Test role Public

#2
Ludwig Reinhard Profile Picture

Ludwig Reinhard Microsoft Employee

#3
Martin Dráb Profile Picture

Martin Dráb 225,155 Moderator

Leaderboard

Product updates

Dynamics 365 release plans