Hi,
I am searching for a table that contains the unprocessed sales information of the specific product.
I searched many tables of Inventory and Sales But didn't find any column named with unprocessed sales
sagharfrancis wrote:Thanks for the reply.
How do I get these unprocessed items in code specific to that warehouse?
Do I need to query the SO_main, So_Lines, and history table or call the sp?
I run sp but it's returning XML. Is it possible to get data in tabular form without creating a new sp.
SELECT SO_Main.InvoiceID, SO_Main.InvoiceNo, SO_Main.InvoiceInitDate,
SO_Lines.LineNum, SO_Lines.InventoryID, SO_Lines.PartNo, SO_Lines.Description, SO_Lines.QuantityOrdered, SO_Lines.QuantityThisDel, SO_Lines.ItemPrice, SO_Lines.CurrentLineTotal
FROM SO_Main
JOIN SO_History ON SO_History.InvoiceID = SO_History.InvoiceID AND SO_History.HistoryNo = SO_Main.CurrentHistoryNo
JOIN SO_Lines ON SO_Lines.InvoiceHistoryID = SO_History.InvoiceHistoryID
WHERE SO_Main.Status = 0
AND IN_LogicalID = 'ZZZZZZZZZ0000000000'
ORDER BY SO_Main.InvoiceNo, SO_Lines.LineNum
Return to Microsoft SQL Server
Users browsing this forum: No registered users and 1 guest