468,294 Members | 1,944 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,294 developers. It's quick & easy.

stock QTY ON HAND problem

4
AvailableQuantity: Sum([totalPurchaseData].[purchase_item_quantity])+(Nz((SELECT SUM(QuantityTransferred) FROM Transfers WHERE Transfers.ItemCode = [totalPurchaseData].[Item Code] AND Transfers.WareHouseCode = [Warehouse_tbl].[Warehouse_ID]AND Transfers.ProjectCode = [Projects_tbl].[Project_ID]),0))-(Nz((SELECT SUM([sales_Item_Quantity]) FROM [totalSalesData] WHERE [totalSalesData].[Item Code] = [totalPurchaseData].[Item Code] AND [totalSalesData].[Warehouse_ID] = [totalPurchaseData].[Warehouse_ID] AND [totalSalesData].[Project_ID] = [totalPurchaseData].[Project_ID]),0))

the problem is: when i transfer items to a warehouse that i didnt make an earlier purchase to, the quantity won't show the transfer + value.
Please help!
3 Weeks Ago #1
0 2341

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

1 post views Thread by Bajal Mohamed via SQLMonster.com | last post: by
24 posts views Thread by Bangalore | last post: by
7 posts views Thread by simon | last post: by
8 posts views Thread by rdrink | last post: by
1 post views Thread by Simon | last post: by
2 posts views Thread by blitz1989 | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by Teichintx | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.