473,396 Members | 2,023 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

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!
Apr 17 '21 #1
0 2692

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

Similar topics

1
by: Bajal Mohamed via SQLMonster.com | last post by:
I am facing problem like; We generate reports thru Excel Pivot table. The data is coming from sales cube. Let?s assume that there are 2 products A and B. The user wants to filter for each...
24
by: Bangalore | last post by:
Hi all, I have a problem in accessing elements using overloaded operator . Consider, const int SIZE=10; int FALSE=0; class Array { private: int x; public:
7
by: simon | last post by:
Hi I know this has been done to death....but obviously at some point in the dim and distant past! I wish to program a retail database for my shop, I have trawled many forums and I only manage...
8
by: rdrink | last post by:
I am just getting into pysqlite (with a fair amount of Python and MySQL experience behind me) and have coded a simple test case to try to get the hang of things... yet have run into a 'stock...
1
by: Simon | last post by:
My database if for a shop. I have a query that adds up the quantity of stock that i have bought and also the quantity of stock i have sold.. Therfor i can work out the amout of stock left in...
1
by: tellme | last post by:
hi...i've one project and need to complete insteadly.I need to develop one system to record a stock.My problem is when we insert new stock,the quantity of the stock in the database will be increase...
2
by: blitz1989 | last post by:
Hello all, I'm new to this forum and Java and having a alot of problems understanding this language. I am working on an invetory program part 4. The assignment requirements are listed but the...
0
by: hannoudw | last post by:
hi i'm working on these tables database (for shoes) --------- item_size(Article,size,stock,quantity) item(Article,stock,price,st_q1,st_q2,st_q3,...,st_q10, code_supplier)...
4
by: Goons | last post by:
Hi All, I'm building a stock database for a mobile retailer. I've got following tables. 1)Manufacturer (Nokia, Apple.... 2)Mobile Models (Lumia 900, E75, Ip5, IP4, Ipad) 3)LOcation (i.e...
1
by: Suyash898 | last post by:
The stock data should be read from a text file containing the following data: stock code, stock name, amount invested (xxx.xx), shares held, and current price. Use the Internet or your local paper to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.