473,386 Members | 1,710 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,386 software developers and data experts.

Storing all the stock items everyday?

2
Hi,
I have a developed a POS application using MS Access. I have say, 200 items. I want to store stock at hand of the 200 items everyday in a table.

example

stock_Date|prod_code|stock_hand
12/12/2010|001 |2
12/12/2010|002 |5

If I store like this, everyday I will get 200 rows and for an year, I cant imagine. Is there a way out to store everyday's stock in single column and retrieve it ?

Thanks in advance.
Faisel
Jul 17 '10 #1
7 1635
jimatqsi
1,271 Expert 1GB
Please explain your question or concern more clearly. It sounds like you are concerned you will get "too many" rows and columns if you do as you described. Storing all the data in a single column would not help one bit with that, it might even make the same data require more storage space than storing it appropriately in a correctly designed table.

If you are truly storing around 200 rows daily, one doesn't need to imagine the result for a year, one only has to calculate to know you'll store around 7,500 rows or less in a year. That's a mere pittance, nothing at all. I'm doing the same thing with 5,500 rows and many more columns and the table is approaching 2 million rows. (and it saved my butt just the other day when somebody questioned the accuracy of the stock level).

What problem are you trying to solve?

Jim
Jul 17 '10 #2
nico5038
3,080 Expert 2GB
The general approach is to have your stock "controlled" by deliveries (= +) and sales (= -).
So just record the product deliveries and the individual sales in separate tables.

Once in a period (week/month/year) you sync the administrative qty with the actual quantity and the difference ( + or -) will have to be accounted for.

Idea ?

Nic;o)
Jul 17 '10 #3
Does knowing the amount of stock each day matter? Because you could remove the date field, add a "new_stock" field, and use it to make a calculated field that gives a new total.

Also, POS means point of sale, right? Not piece of sh**? :D
Jul 17 '10 #4
Faisel
2
actually my concern is this.

I will tell you an incident.

yesterday my QOH for a particular item is 5 and today i have sold 3 and my QOH at EOD is 2. I want this balance 5=3+2. If the balance is not there, then I can trace back there is a problem today. To do this, I want to store QOH everyday and check on someother day when there is a stock error.

QOH - quantity on hand
Jul 18 '10 #5
nico5038
3,080 Expert 2GB
So what's the difference between a stock error on the 12th or the 15th?

Dutch stores/factories check in general their inventory against their administration once a year, giving them the "leakage" what's needed for the accountant.

Nic;o)
Jul 18 '10 #6
jimatqsi
1,271 Expert 1GB
Relevant war story from last week ... customer called to ask why his inventory was off. He counted item X last week and found 11, but the computer said 3. So he did an adjustment of 8. Several days later he noticed that the count of that item was again off, this time by 2. Computer said he had 7 but he could find only 5. Here's how it happened, in sequence:

UPS delivered two units of item X.
They did a stock count of Item X, finding 11, and making the adjustment of +8
They sold 6 units on 2 or 3 different sales orders over a few days, bringing them to 5 on hand.
They finally got around to entering the P/O receipt of 2 units. When they entered the P/O receipt they used the actual date of receipt, not the entry/posting date.

So at this point the computer has a quantity of 7 for that item but there are only 5 in the warehouse. So they call Jim and bark about the computer not counting right. Fortunately, I had an on hand stock tracking table like Faisel is setting up AND time stamps on the P/O and General Ledger entries, so I was able to reconstruct events in correct order.

Now when they back date a P/O receipt I'm going to check for stock adjustments done since the receipt date and give them a message warning about this scenario causing a stock error.

Jim

.
Jul 19 '10 #7
nico5038
3,080 Expert 2GB
The problem here is the fact that not all receipts have been booked when doing the stock count. As demonstrated, only logging the changes will enable the reconstuction.
Daily stock counts won't solve this problem however. The advise should be to keep periodic stock counts after processing all receipts and sales.

Nic;o)
Jul 19 '10 #8

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

Similar topics

7
by: Phil Powell | last post by:
You have ordered one item and placed it into your cart. Let's say you ordered one small black t-shirt. Your cart will have the product_id, color_id and size_id for the small black t-shirt. The...
2
by: Shell | last post by:
What is the best way to store the items and quantities that customers have chosen across a session without using cookies The customer does not need to login to do online shopping and users will be...
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...
1
by: Michael Thomas | last post by:
Hi everyone I have a database which I use to keep track of stock for the company that I work for. We are a retail chain with 8 locations at present and a head office. I need to keep track of...
9
by: simon.harris | last post by:
I have a 'master' stock list with current stock levels (integer) and another table that contains transactions (i.e. item#, #items added/ removed, date, user etc). What I need is an update query...
6
by: Phreake | last post by:
Hi Guys, I am doing a stock list of Printer tonors, with the following tables Printer_tonor_Stock Tonors Printers ----------------------------- ------------- --------------...
0
by: ruthfish | last post by:
I am used to using VB6 and trying to work in VB.NET as my school have switched to it. I need to compare all the items loading into a combo box to items being read from an array from a text file...
23
by: lionelm | last post by:
Item (upc, title, type, category, company, year, sellPrice) Purchase (receiptId, date, cid, name, card#, expire, expectedDate, deliveredDate) PurchaseItem (receiptId, upc, quantity) Stored (name,...
0
by: lcthree | last post by:
Hi, my question is about database design. I'm trying to design a database for a stock control program as part of a larger system. The problem I am having is that some items in the database have...
2
by: sazd1 | last post by:
I am using vb express and MsAccess as database. I am trying to write a query for the calculation of Stock. My tables are as under: PId PDate ItemId Description Price Quantity ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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...

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.