AVAILABLE INVENTORY

Completado Publicado Aug 25, 2004 Pagado a la entrega
Completado Pagado a la entrega

I am working in MSSQL 2000.

I have 2 tables

t1: CREATE TABLE SALES_ORDERS_DUE_2 (SHIPDATE DATETIME, ONORDERQUANTITY REAL, PRODUCT_MAIN_NUM INT)

and

t2:CREATE TABLE SALES_ORDERS_DUE_INVENTORY_SUM (PRODUCT_MAIN_NUM INT, SUMPIECES REAL)

Table t1 is a list of sales orders with the shipdate is the date that the order must be shipped, onorderquantity is the pieces to be shipped, product_main_num is the product id number.

Table t2 is a list of available inventory with product_main_num as the product id number and sumpieces as the total pieces available in inventory.

I would like to have a stored proc that would modify t1 and t2. I would like onorderquantity subtracted fromsumpieces if the pieces are available in t2 and at the same time if the sumpieces are available then onorderquantity should be reduced to 0 .

as an example1:

t1.shipdate=9/1/2004

t1.onorderquantity=300

t1.product_main_num=2510

t2.product_main_num=2510

t2.sumpieces=800

then

t1.shipdate=9/1/2004

t1.onorderquantity=0

t1.product_main_num=2510

t2.product_main_num=2510

t2.sumpieces=500

as an example2:

t1.shipdate=9/1/2004

t1.onorderquantity=300

t1.product_main_num=2510

t2.product_main_num=2510

t2.sumpieces=200

then

t1.shipdate=9/1/2004

t1.onorderquantity=100

t1.product_main_num=2510

t2.product_main_num=2510

t2.sumpieces=0

there are many records in t1 and many shipdates and ther may or may not be enough inventory(t2) to fill all the orders. This program will let me determine what product I need to manufacture by what date taking into account the inventory that is already available.

Note:I need simple code for this ,I am a novice programmer.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

windows 2000 server running mssql2000

Ingeniería MySQL PHP Arquitectura de software Verificación de software SQL

Nº del proyecto: #3327191

Sobre el proyecto

15 propuestas Proyecto remoto Activo Aug 26, 2004

Adjudicado a:

vladmik

See private message.

$7 USD en 14 días
(120 comentarios)
6.9

15 freelancers están ofertando un promedio de $44 por este trabajo

ClickSaltLake

See private message.

$72.25 USD en 14 días
(160 comentarios)
6.3
arosoft

See private message.

$29.75 USD en 14 días
(59 comentarios)
5.9
maramayvw

See private message.

$17 USD en 14 días
(94 comentarios)
5.5
juran

See private message.

$17 USD en 14 días
(15 comentarios)
4.9
vbcodepro

See private message.

$38.25 USD en 14 días
(52 comentarios)
5.0
NeoTekSystems

See private message.

$63.75 USD en 14 días
(24 comentarios)
4.7
raojune

See private message.

$50.15 USD en 14 días
(7 comentarios)
2.4
paulhulatt

See private message.

$42.5 USD en 14 días
(2 comentarios)
3.3
vw1300842vw

See private message.

$12.75 USD en 14 días
(1 comentario)
0.0
bllobai

See private message.

$85 USD en 14 días
(0 comentarios)
0.0
jspsenthill

See private message.

$8.5 USD en 14 días
(0 comentarios)
0.0
logicalmanuk

See private message.

$100.3 USD en 14 días
(0 comentarios)
0.0
romfeovw

See private message.

$68 USD en 14 días
(0 comentarios)
0.0
blackringvw

See private message.

$42.5 USD en 14 días
(0 comentarios)
0.0