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 :
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

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.

I have the same question (0)
  • Suggested answer
    Alireza Eshaghzadeh Profile Picture
    Super User 2025 Season 2 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

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Kumar_Sat Profile Picture

Kumar_Sat 32

#2
MF-16081018-0 Profile Picture

MF-16081018-0 24

#3
Karam Baazab Profile Picture

Karam Baazab 23

Product updates

Dynamics 365 release plans