Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Display method in voucher transactions

Posted on by 326

Hi,

I'm using the display method in 'Ledgerjournaltable' to get the workflow submitter name against the journal and i need to include that column in GL-Inquiries-Voucher transactions form so i tried to link 'Journal number' from 'Ledgerentryjournal'(which is DS used in that form) with ledgerjournal table but it fetching the value only for one record and when i checked in 'Ledgerentryjournal' table the journal number is present only one time but voucher transactions showing two records i.e.the journal has been posted with two ledger accounts (debit and credit).so how can we fetch the display value for all voucher transactions against the journal ?

*This post is locked for comments

  • Suggested answer
    Sukrut Parab Profile Picture
    Sukrut Parab 71,647 Moderator on at
    RE: Display method in voucher transactions

    Look at this old thread wchich shows  how you can join ledgerjournaltrans to generalJournalAccountentry. Use it as a reference and modify query according to your need.

    community.dynamics.com/.../145749

  • VV-22040800-0 Profile Picture
    VV-22040800-0 326 on at
    RE: Display method in voucher transactions

    Hi 

    i'm using the below code for relation,can you guide how to change this to loop through all debit and credit transactions against the journal voucher transactions

    select LedgerAccount from generalJournalAccountEntry join generalJournalEntry where generalJournalAccountEntry.GeneralJournalEntry==generalJournalEntry.RecId
    join RecId,JournalNumber from ledgerentryjournal where ledgerentryjournal.RecId==generalJournalEntry.LedgerEntryJournal join JournalNum from ledgerjournaltable where ledgerjournaltable.JournalNum==ledgerentryjournal.JournalNumber;

  • VV-22040800-0 Profile Picture
    VV-22040800-0 326 on at
    RE: Display method in voucher transactions

    Hi,

    Any input for the above issue ?

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!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans