web
You’re offline. This is a read only version of the page.
close
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

I have the same question (0)
  • Suggested answer
    Community Member Profile Picture
    on at

    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....

  • Community Member Profile Picture
    on at

    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.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics GP (Archived)

#1
mtabor Profile Picture

mtabor 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans