Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

Relation between Load, CustPackingSlipJour & CustPackingSlipTrans

Posted on by 533
Hi Experts,
 
I have a scenario that we will be sending multiple sales order deliveries to same customer in one load. I am preparing a SSRS report for the same. What is .the relation between WhsLoadTable / CustPackingSlipJour / CustPackingSlipTrans. 
I saw the table WhsLoadTableCustpackingSlipJour but when I tested some transaction, the relation WhsLoadTableCustPackingSlipjour.CustPackingSlipJourRecId  = CustPackingSlipJour,recid relation did not find matching as required. 
 
I need to fetch the packing slip transaction based on the parameter Load id from the table WHSLoadTable. 
 
Thanks in advance. 
 
 
  • Mohamed Amine Mahmoudi Profile Picture
    Mohamed Amine Mahmoudi 7,962 User Group Leader on at
    Relation between Load, CustPackingSlipJour & CustPackingSlipTrans
    Hi @Alex,
     
    try this :
    select * from custPackingSlipTrans
    join CustPackingSlipJour
    on CustPackingSlipJour.SalesId = custPackingSlipTrans.SalesId
    and CustPackingSlipJour.PackingSlipId = custPackingSlipTrans.PackingSlipId
    join WHSLoadLine
    on WHSLoadLine.InventTransType = 0
    and WHSLoadLine.OrderNum       = CustPackingSlipJour.SalesId
    join WHSLoadTable on WHSLoadLine.LoadId = WHSLoadTable.LoadId
    Best regards,
    Mohamed Amine MAHMOUDI

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,584 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,864 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans