Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics GP (Archived)

Smartlist builder and showing shipment receipts and invoice matched to the shipment

(0) ShareShare
ReportReport
Posted on by

Has anyone created a smartlist that will show shipment receipts and the invoices tied to them? 

*This post is locked for comments

  • RE: Smartlist builder and showing shipment receipts and invoice matched to the shipment

    Did you ever get something working on this issue.  We are just now trying to develop something as well and don't want to reinvent.  Read response on SQL view, great attack on problem but it does not seem to be the turn key solution since is does not isolate a one for one relationship.  Would appreciate any suggestions you might have found to resolve.

  • Suggested answer
    RE: Smartlist builder and showing shipment receipts and invoice matched to the shipment

    Check this out in your test environment against you test company db.  

    declare @ponumber as varchar(21) = 'Enter po number here'

    --Receipts with vendor doc number

    --Purchasing Receipt History

    select * from POP30300 where POPRCTNM in (select POPRCTNM from POP30310 where PONUMBER = @ponumber )

    --Purchasing Receipt Line

    select * from POP30310 where PONUMBER = @ponumber

    --Purchasing Receipt Line Quantities

    select * from POP10500 where PONUMBER = @ponumber  

    -- Invoices...

    select * from Pm20000 where

    docnumbr IN (select vnddocnm from POP30300 where POPRCTNM in (select POPRCTNM from POP30310 where PONUMBER = @ponumber )) and

    vendorid IN (select vendorid from POP30300 where POPRCTNM in (select POPRCTNM from POP30310 where PONUMBER = @ponumber ))

    select * from PM30200 where

    docnumbr IN (select vnddocnm from POP30300 where POPRCTNM in (select POPRCTNM from POP30310 where PONUMBER = @ponumber )) and

    vendorid IN (select vendorid from POP30300 where POPRCTNM in (select POPRCTNM from POP30310 where PONUMBER = @ponumber ))

     

    Once your query is settled down, getting a smart list designed would be easier....

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... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,409 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans