Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

How to Link Properly Invoice Lines with Cust Packing Slip Lines?

(0) ShareShare
ReportReport
Posted on by 907
Hi dear community !
 
I'm trying to add cust packing slip lines into the sales invoice SSRS report.
 
in standard Sales Invoice report, only invoice lines are displayed, and I am trying to add the cust packing slip lines into it.
 
I tried linking them using /inventTrans/ in the following query:
while select inventTransOriginwhere inventTransOrigin.InventTransId == _custInvoiceTrans.InventTransIdjoin inventTranswhere inventTrans.InventTransOrigin == inventTransOrigin.RecId&& inventTrans.InvoiceId == _custInvoiceTrans.InvoiceIdjoin custPackingSlipTranswhere custPackingSlipTrans.PackingSlipId == inventTrans.PackingSlipId&& custPackingSlipTrans.ItemId == _custInvoiceTrans.ItemId&& custPackingSlipTrans.LineNum == _custInvoiceTrans.LineNum&& custPackingSlipTrans.Qty != 0
 
But there is a case where I'm having an issue where on the cust packing slip screen on the sales order, it shows only 1 line, while the query above gave me 2 lines.
I checked on the DB and I found that there is 2 inventTrans records. they have the same item and the same InventTransID but different quantity.
I'm having an issue trying to identify why there is this 2nd line with different qty. Because in the Packing slip screen on the sales order, it's only showing 1 line...
Please let me know if I am missing something in the query...
 
Any advice is appreciated !
 
Thanks in advance !
  • André Arnaud de Calavon Profile Picture
    André Arnaud de Cal... 292,494 Super User 2025 Season 1 on at
    How to Link Properly Invoice Lines with Cust Packing Slip Lines?
    Hi Community user,
     
    Both of the lines will probably have a different financial date and voucher. Using the voucher and date of the invoice you can get the correct inventory transactions.

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

Announcing Our 2025 Season 1 Super Users!

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

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 231,307 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans