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

Notifications

Announcements

No record found.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans