web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Relation between VendPackingSlipTrans and VendInoiceTRans Dynamics Ax 2012 R3

(0) ShareShare
ReportReport
Posted on by 916

Hi,

I can't get the best relashionship between VendPackingSlipTrans and VendInoiceTRans.i search in the net i found this : 

static void Job3(Args _args)
{
VendPackingSlipTrans _PackingTrans;
VendPackingSlipQuantityMatch _ VendPackingSlipQuantityMatch;
vendInvoicetrans _ vendInvoicetrans;

select firstOnly * from _PackingTrans
join _VendPackingSlipQuantityMatch
where _VendPackingSlipQuantityMatch.InvoiceSourceDocumentLIne ==vendInvoiceTrans.SourceDocumentLine
&& _PackingTrans.SourceDocumentLine == _VendPackingSlipQuantityMatch.PackingSlipSourceDocumentLine;
}

But why i can't find the table VendPackingSlipQuantityMatch  in AOT?

There is another relation beween this tables?

Today i export to CSV file invoiced and recieved purch order line o, so i don't want get  lines recieved from line invoiced that's way i'm looking for the relation between two tables

*This post is locked for comments

I have the same question (0)
  • Chaitanya Golla Profile Picture
    17,225 on at

    Try with the following relations:

    VendPackingSlipTrans.InventTransId == InventTransOrigin.InventTransId and

    VendInvoiceTrans.InventTransId == InventTransOrigin.InventTransId for a given Item.

    Thanks

     

  • Suggested answer
    Community Member Profile Picture
    on at

    Hi

    if you go to "VendPackingSlipTrans" table, under "Relations" node you will see the "VendInvoiceTrans" relation with these fields:

    VendPackingSlipTrans.InvoiceTransRefRecId == VendInvoiceTrans.RecId

  • Community Member Profile Picture
    on at

    Could anyone explain why this relationship might not be valid?

    If i run off a report with all vendinvoicetrans.recID, the recID is valid 563xxxxxxxxx. However, If i do the same for vendpackingsliptrans.invoicetransrefrecID the value is zero for every transaction. 

    Is there any reason this would be the case, we are using three-way matching. 

    Thanks, 

    Bruce

  • Community Member Profile Picture
    on at

    Bruce, 

    Did you ever receive an answer to your question? I'm running into the same issue on my end. 

    -- Carlos 

  • Community Member Profile Picture
    on at

    The problem is the name of table, the good one is VendInvoicePackingSlipQuantityMatch

  • Community Member Profile Picture
    on at

    Angel, 

    I appreciate the help with this. 

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the April Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
CP04-islander Profile Picture

CP04-islander 24

#2
Michel ROY Profile Picture

Michel ROY 14

#3
imran ul haq Profile Picture

imran ul haq 8

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans