Skip to main content

Notifications

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

  • Community Member Profile Picture
    on at
    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
    Community Member Profile Picture
    on at
    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

Jainam Kothari – Community Spotlight

We are honored to recognize Jainam Kothari as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
Almas Mahfooz Profile Picture

Almas Mahfooz 3 User Group Leader

Featured topics

Product updates

Dynamics 365 release plans