Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

How to get customer Invoice Account from InventTransOrigin/InventTrans table with invoice id?

(0) ShareShare
ReportReport
Posted on by 1,811

Hii, 

I have a custom form. All the data that I want to show on this form is accurate except customer Invoice Account.

Please see the output of the form,

list.png

All the above columns are as required and ok.
Now requirement is to show customer Invoice Account for each invoice which is in CustInvoiceJour table.

Please see form data source,

rel1.PNG

To get Invoice Account I am joining CustInvoiceTrans and CustInvoiceJour tables. 

rel2.PNG

And this relation is not returning required results. 

What is missing in the relation..?
Or how I can write a display method in InventTrans or InventTransOriging table and get customer Invoice Account.

Please guide if there is better approach.

Thanks,

*This post is locked for comments

  • Verified answer
    Satish Panwar Profile Picture
    Satish Panwar 14,649 on at
    RE: How to get customer Invoice Account from InventTransOrigin/InventTrans table with invoice id?

    Hi Rana,

    There is field InvoiceId in InventTrans, that you can leverage. the relation between inventTrans and CustInvoiceJour (InvoiceId field in both tables), just make sure you link InventTrans and InventTransOrigin and then add a filter on InventTransOrigin.ReferenceCategory = 0 (i.e. Sales invoices only).

    Thank you.

    If you find this useful, please help verify the answer.

  • Suggested answer
    Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: How to get customer Invoice Account from InventTransOrigin/InventTrans table with invoice id?

    Hello Rana,

    What might help is the transaction origin report that you can open in the general ledger module in the report-reconciliation section.

    This report allows you filtering on various ledger and subledger accounts and might give you a hint what is missing in your form/report.

    Best regards,

    Ludwig

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans