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

Help with Inventory Database

18
Hello!

I'm not very good in making code work for me, so I thought I would put it on here and ask for some suggestions. Here is some back ground. I have an inventory database that I can log what is on order, in stock, allocated, and shinkage. By entering each transaction, I can tell what I have on hand vs. what is "avaliable". Now. As I'm entering a new job, some of my available stocks are going into the negative and I will have to order more of these. I have adjusted my report to only show the items in the negative.

Is there a way I can make an expression to

while available stock / cartonqty <0
then add carton qty

end while


I would like the database to become more functional so I do not have to go through all the items to determine what I need.

Once I get this out of the way, I would take the qty * price to print out a complete report to tell my boss how much we are ordering.

Any ideas or suggestions would be helpful.


Thank you
Stephanie
Aug 18 '08 #1
5 1558
hyperpau
184 Expert 100+
while available stock / cartonqty <0
then add carton qty
I would like to understand what it is really you want to do here.

is
available stock / cartonqty
pertaining to available stock 'divided by' carton qty?
what is the
then add carton qty
gonna do?
Aug 18 '08 #2
StephR
18
By adding a carton qty, I was hoping to get the order qty.... Now that you say something I guess that doesn't really make any sence...

Here is what I was thinking...

Let's say item 1 is less 12 of available stock. My carton qty is 15.

So I would order 15....

Let me rethink the formula and post back. Thank you for your help


Thank you,
Stephanie
Aug 19 '08 #3
StephR
18
What about this:

Variables - *work through example*

Available qty (in stock - allocated) *-51*
Carton qty - Qty the item comes in *50*
Order qty - How much I will need to order *?*
Case - How many cartons I will need to order *?*


While Available qty is less than 0
then add integers from Available qty to 0 *order qty = 51*


Divide Order qty by carton qty *51/50 = 1.02*

While Case is not a whole number
then add one to carton qty *52/50 = 1.04*
*53/50 = 1.06*
repeat
*100/50 = 2*


So this would tell me I would order 100 for a case of 2


What do you think?
Aug 20 '08 #4
hyperpau
184 Expert 100+
I'm sorry. I really want to help you out on here.
But I just can't understand what you're trying to tell me... :(

What about this:

Variables - *work through example*

Available qty (in stock - allocated) *-51*
Carton qty - Qty the item comes in *50*
Order qty - How much I will need to order *?*
Case - How many cartons I will need to order *?*


While Available qty is less than 0
then add integers from Available qty to 0 *order qty = 51*


Divide Order qty by carton qty *51/50 = 1.02*

While Case is not a whole number
then add one to carton qty *52/50 = 1.04*
*53/50 = 1.06*
repeat
*100/50 = 2*


So this would tell me I would order 100 for a case of 2


What do you think?
Aug 22 '08 #5
StephR
18
It's ok. Turns out, my neighbor is a programmer and he said he would help me out.

Thanks anyway.
Aug 25 '08 #6

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

Similar topics

4
by: Oleg | last post by:
Hi, Not really a PHP specific question, but I am using PHP on Linux box so it's kinda relevant. I'm developing a site which will periodically update inventory via a large batch file. I'm...
5
by: gregork | last post by:
I have painstakingly created an excel 2000 workbook for the very complex recipes I have to formulate. I have 2 sheets- 1 for configuring the recipe and 1 that is like an inventory of all the raw...
3
by: John | last post by:
Hi there - if anyone has a few spare minutes I could really do with some help please. I'm a student and have been given an exercise using MS Access to design a simple database for a fictional...
4
by: lorirobn | last post by:
Hello, I'd be curious to hear other thoughts on my database and table design. My database is for 'space use' in a lodging facility - will hold all spaces, like rooms (lodging rooms, dining...
4
by: DeepDiver | last post by:
I am developing an inventory database in SQL Server. I realize there are many commercial (as well as some non-commercial) inventory offerings, but my client has specific requirements that would...
13
by: royaltiger | last post by:
I am trying to copy the inventory database in Building Access Applications by John L Viescas but when i try to run the database i get an error in the orders form when i click on the allocate...
3
by: Wired Hosting News | last post by:
Lets say I have 10 products in 10 different stores and every week I get a report from each store telling me how many items they have left for each of the 10 products. So each week I enter in 100...
5
by: Sam | last post by:
Hi, I have one table like : MyTable {field1, field2, startdate, enddate} I want to have the count of field1 between startdate and enddate, and the count of field2 where field2 = 1 between...
2
by: NITHYA LATHA | last post by:
XYZ Company is a Car production company. It has four factories and many distribution outlets spread across the country. The company keeps online records of the sales of its cars. It also creates...
0
crystal2005
by: crystal2005 | last post by:
Hi, I am having trouble with some complex SQL queries. I’ve got winestore database, taken from Web Database Application with PHP and MySQL book. And some question about queries as the following ...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.