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

Inventory counting system advise/critique

I am faced with a decision about a design I would like to get right the first time. So a straight up answer or any helpful advice will be well appreciated.

We are going to do an inventory. The files that will be created for the inventory will be simply a column of "barcode". There are still a lot of products that need to be barcoded and I was hoping to save time during the actual counting by creating sealed "Cases" for product that is back stock and will most likely not move between now and counting. This is where my decision comes in. What is the best design for such a task? Below is the option I have considered but I will take any advise that seems like the subjective "right" way. Also where any short comings may be with this option and the benefits of your suggested options would be pretty important in making my decision (and anyone else reading this and having to make a similar decision).


I would have a table named something clever, like "Cases":


id,CaseNum,Barcode,Qty
1,C852,123456789,3
2,C852,123456788,1
3,C853,123456789,2


then use PROCs like the following for CRUD(Create,Read,Update,Delete):

Expand|Select|Wrap|Line Numbers
  1. EXEC CasesBarcodeCreate 'C853','123456789','1'
  2.  
which would do something like:



Expand|Select|Wrap|Line Numbers
  1. IF EXISTS (SELECT id FROM Cases WHERE CaseNum = @CASENUM AND Barcode = @BARCODE)
  2. BEGIN
  3.     UPDATE Cases
  4.     SET qty = qty + @QTY
  5.     WHERE CaseNum = @CASENUM AND Barcode = @BARCODE 
  6. END
  7. ELSE
  8. BEGIN
  9.     INSERT Cases (CaseNum, Barcode, Qty) Values (@CASENUM, @BARCODE, @QTY)
  10. END
  11.  


This is going to be a very SQL centric method where most of the logic will be done by these SQL Server PROCs and the program I write around it will pretty much just parse files which will look like:

123456789
123456788
C852
123456787
C853


So the parser sees that the line C852 starts with C and goes to the db With EXEC CasesBarcodeRead 'C852' that will return:
123456789 3
123456788 1

the program will parse and replace C852 with:

123456789
123456789
123456789
123456788

Leaving file data with:


123456789
123456788
123456789
123456789
123456789
123456788
123456787
C853

and moving on.

<SUB QUESTION>
Is there a way I can query the aforementioned table to get back the barcodes in a recordset like:

123456789
123456789
123456789
123456788

Or is that going to be a lot of looping (some cases may have hundreds of products) that will be best left to the software?

</SUB QUESTION>


To me this seems like a workable solution. I would like it to become more once the initial count is complete and spread it out to the Bin system and people can add and remove items from the cases/bins and search for what cases have a certain item and how many. General inventory management system things. But would like to get it right the first time around so we don't do a lot of work that ends up being useless because of an over site here.

I would also like to hear any horror stories that I can keep in mind from people who have already been down this path.

Thanks in advance!
May 13 '11 #1
0 1207

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

Similar topics

0
by: Guy | last post by:
Please email your resume if you are interested in this position in Harrisburg, PA. Candidate will consolidate state agency mission-critical systems that citizens of Pennsylvania depend on every...
1
by: margaret00 | last post by:
Hi, I am working as an IT manager at a small manufacturing business right now. They are currently using an archaic dos based accounting system. They have been using the same system for over 10...
1
by: linktoali | last post by:
I need a demo project on inventory database system with the backend SQL server databa in VB.net
3
by: diablo4303 | last post by:
hi all... have any of you here know how to build a program like Inventory Controlling System using RFID? I'm confuse which software that i can use to create inventory system RFID. Hopefully...
2
by: Sanjaylml | last post by:
I am trying to design a Inventory System in MS Access. I have made a form, through which, receipt of material is recorded. Accordingly, distinct part master table is updated based on total qty. of...
1
by: jcato77 | last post by:
I need help with a class project I'm working on, Below is my assignment and the code I have currently created. Assignment: Modify the Inventory Program by creating a subclass of the product class...
3
by: 100grand | last post by:
Modify the Inventory Program to use a GUI. The GUI should display the information one product at a time, including the item number, the name of the product, the number of units in stock, the price...
1
by: sajitk | last post by:
Friends, I am making an inventory management system for my office. I have 3 tables namely; Recd_Items Item_code - FK Item_Recd - Numeric
5
by: sajitk | last post by:
Friends, I am trying to desing an inventory management system for my office. I have designed the database. the details of each table are given below: Emp_Mast E_Code, Text, PK Emp_Name,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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
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.