Quantcast
Channel: Microsoft Dynamics GP
Viewing all articles
Browse latest Browse all 59474

Forum Post: RE: Receipt Qty shipped and Previously shipped do not match

$
0
0

Sorry for my delay in replying to this issue. Let me make clear one point, you must be reading the "Previously Shipped" and "Previously Invoiced" values on the "Receiving Transaction Entry", right !

These values are calculated fields, which means that they are not stored within GP Tables. In this essence, when opening "Receiving Transaction Entry" window, there are certain procedures that run to retrieve the quantity values (quantity shipped, invoiced, rejected, ordered, canceled ..etc) and calculate the "previously  # " fields.

This means that you need to take care that the value entered on the "Receiving Transaction Entry" window at this time will be added to the "Quantity Shipped" in order to calculate the previously shipped.

I would love to dig further in this issue, therefore, could you please run the script below considering the following;

  • Go to Inquiry > Purchasing > Purchase Order Documents, Enter the same Vendor and Purchase Order Numberabove.
    • Under the Inquiry window, please ensure to include all the check boxes (Open, Historical , Receipts Received) 
    • Manually Calculate all the previously shipped Quantities under several receiving (Posted and un posted)
  • Go to Receiving Transaction Entry, Choose a certain Vendor, Purchase Order Number and Item Number
    • Enter a value under Quantity Shipped.

Now, add the value you have just entered in ''Quantity Shipped" to the value you manually calculated from the inquiry, you must find the same value shown under "Previously Shipped" field in Receiving Transaction Entry. [deduct any rejected quantities if any]

For further checks, you could use the script below:

--  The Script below retrieves the calculation of the Previously Shipper Quantity for Items received on Purchase Orders
--  Tables:
--  POP10500  | Purchasing Receipt Line Quantities
--  POP10110  | Purchase Order Line

SELECT  AA.PO_Number,
        AA.ITEMNMBR,
        AA.PO_Line_Number,
        BB.QTYORDER AS PO_Quantity_Ordered,
        bb.QTYCANCE AS PO_Quantity_Canceled ,
        AA.Quantity_Shipped,
        AA.Quantity_Invoiced,
        AA.Quantity_Rejected,
        AA.Previously_Shipped,
        AA.Previously_Invoiced
        FROM
(
    SELECT    PO_Number,
            ITEMNMBR,
            PO_Line_Number,
            SUM(Quantity_Shipped)  Quantity_Shipped,
            SUM(Quantity_Invoiced) Quantity_Invoiced,
            SUM(Quantity_Rejected) Quantity_Rejected,
            SUM(Quantity_Shipped)- SUM(Quantity_Rejected) AS Previously_Shipped,    
            SUM(Quantity_Invoiced) AS Previously_Invoiced
            FROM
    (
        SELECT
                PONUMBER AS PO_Number,
                ITEMNMBR,
                POLNENUM AS PO_Line_Number,
                POPRCTNM AS Reciving_Number,
                QTYSHPPD AS Quantity_Shipped,
                QTYINVCD AS Quantity_Invoiced,
                QTYREJ AS Quantity_Rejected,
                QTYMATCH AS Quantity_Match,
                QTYRESERVED AS Quantity_Reserved,
                CASE Status
                WHEN 0 THEN 'Unposted'
                WHEN 1 THEN 'Posted'
                WHEN 2 THEN 'Voided'
                ELSE 'NA'
                END AS Document_Status,
                UMQTYINB
                FROM POP10500  
                WHERE PONUMBER = '#PONUMBER'
    ) AS A
        GROUP BY PO_Number, ITEMNMBR, PO_Line_Number
        
) AS AA
  LEFT OUTER JOIN POP10110 AS BB
  ON    AA.PO_Number = BB.PONUMBER  AND
        AA.PO_Line_Number = BB.ORD  AND
        AA.ITEMNMBR = BB.ITEMNMBR

Run the whole script for summary view. Though, you could run the script in "grey" alone for detaied view of the receiving transaction entry documents.

Your feedback is highly appreciated to dig for further details if required.

Best Regards,

Mahmoud AlSaadi


Viewing all articles
Browse latest Browse all 59474

Trending Articles