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)

PO remaining balance quantity

(0) ShareShare
ReportReport
Posted on by

I am trying to create a purchasing report showing the remaining PO quantity.  In other words, I have a PO for 10 items and receive 8.  I want to see a column with the remaining quantity of 2.  I've seen the Remaining PO Subtotal, but the quantity is more important to me than the dollars.

Also, I'd like to list each PO line in the report.  If PO 123 has 3 lines, I want to see all of them listed (regardless of the status of the PO).  Is there a field for that?

Thanks in advance!

*This post is locked for comments

I have the same question (0)
  • Suggested answer
    Mahmoud Saadi Profile Picture
    32,738 on at

    Check this out Purchase Order Receiving and Invoices Details, You might need to add a column for the "remaining quantity"

    Your feedback is highly appreciated,

  • Community Member Profile Picture
    on at

    Mahmoud,

    Thanks for the reply.  Unfortunately, I don't have access to SQL to run this script.  I was hoping for an actual field that I could use.  I'll forward the script to the DBA and see if they can work their magic with it!

    Thanks again.

    Vance

  • Mahmoud Saadi Profile Picture
    32,738 on at

    Let us know if you need any further assistance,

  • Verified answer
    babubaskaran@outlook.com Profile Picture
    12 on at

    Hi Vance,

    Have you had a look at the GP Purchasing report.

    Purchasing >>Reports >> Analysis >> New or Modify button

    Select Purchase order Status which will give detailed level of each PO.

    You can also build smartlist using the table mentioned by Mahmoud.

  • Beat Bucher  GP Geek  GPUG All Star Profile Picture
    28,058 Moderator on at

    Navigation List builder in GP might be able to help you too in that exercise... The advantage like Smart List builder is that it remains within GP and is accessible to every GP user

  • Verified answer
    Community Member Profile Picture
    on at

    Babu,

    Thanks for the reply.  This should be sufficient for what we need.

  • Community Member Profile Picture
    on at

    Béat,

    Thanks for the reply.  We're still new to GP, so I'm not completely familiar with Navigation Builder.  I'll work with the DBA to get better educated with this.  Thanks again.

  • Suggested answer
    Community Member Profile Picture
    on at

    Try:

     

    SELECT A.PONUMBER,

    A.ORD,

    A.QTYORDER,

    A.QTYCMTBASE,

    A.QTYCANCE,

    QTYINVCD=ISNULL(B.QTYINVCD,0),

    QTYREJ=ISNULL(B.QTYREJ,0),

    QTYREPLACED=ISNULL(B.QTYREPLACED,0),

    QTYSHPPD=ISNULL(B.QTYSHPPD,0),

    REMAINING=A.QTYORDER-A.QTYCANCE-ISNULL(B.QTYSHPPD,0)

    FROM POP10110 A --Purchase Order Line Work

    LEFT OUTER JOIN (

    SELECT A.PONUMBER, A.POLNENUM, QTYINVCD=SUM(A.QTYINVCD), QTYSHPPD=SUM(A.QTYSHPPD), QTYREJ=SUM(A.QTYREJ), QTYREPLACED=SUM(A.QTYREPLACED)

    FROM POP10500 A

    GROUP BY A.PONUMBER ,A.POLNENUM

    ) B --Purchase Order Receiving Line Work

    ON A.PONUMBER=B.PONUMBER AND A.ORD = B.POLNENUM

  • Suggested answer
    Community Member Profile Picture
    on at

    Here is better looking query:

    SELECT [PO Number]=RTRIM(A.PONUMBER),

    [PO Line Number]=A.LineNumber,

    [Item Number]=RTRIM(A.ITEMNMBR),

    [Site ID]=RTRIM(A.LOCNCODE),

    [Unit of Measure]=RTRIM(A.UOFM),

    [Qty Ordered]=A.QTYORDER,

    [Qty Canceled]=A.QTYCANCE,

    [Qty Invoiced]=ISNULL(B.QTYINVCD,0),

    [Qty Rejected]=ISNULL(B.QTYREJ,0),

    [Qty Replaced]=ISNULL(B.QTYREPLACED,0),

    [Qty Shipped]=ISNULL(B.QTYSHPPD,0),

    [Qty Remaining]=A.QTYORDER-A.QTYCANCE-ISNULL(B.QTYSHPPD,0)

    FROM POP10110 A --Purchase Order Line Work

    LEFT OUTER JOIN (

    SELECT A.PONUMBER, A.POLNENUM, QTYINVCD=SUM(A.QTYINVCD), QTYSHPPD=SUM(A.QTYSHPPD), QTYREJ=SUM(A.QTYREJ), QTYREPLACED=SUM(A.QTYREPLACED)

    FROM POP10500 A

    GROUP BY A.PONUMBER ,A.POLNENUM

    ) B --Purchase Order Receiving Line Work

    ON A.PONUMBER=B.PONUMBER AND A.ORD = B.POLNENUM

    ORDER BY A.PONUMBER, A.LineNumber

  • Community Member Profile Picture
    on at

    Shane,

    Thanks for the information.  Unfortunately, I don't have SQL access (nor speak SQL).  I believe we now have a report that provides what we need.  I will forward this to the DBA to see if this provides more than what we already have.

    Thanks again.

    Vance

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