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 950
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
    293,278 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

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... 293,278 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,998 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156 Moderator

Leaderboard

Product updates

Dynamics 365 release plans