You are on page 1of 4

Sales Order Processing

1) APPLICATION.
M/s ABC and Co. Ltd. deals in machinery spare parts. They have branches all over the
country. The branches employ marketing representatives for the territories under them. The
representatives book orders from various customers.
The project involves building an application to book orders from the customers and generate
the reports.
2) TABLES.
The follo!ing tables should be created"#
Branch_mst
Branch$cd Char%&' (rimary key
Branch$name )archar*%*+' ,ot null
!tg_territor"_mst
Area$cd Char%&' (rimary key
Area$name )archar*%*+' ,ot null
Branch$cd Char%&' ,ot null
!tg_re#_mst
-ep$cd Char%&' (rimary key
-ep$name )archar*%*+' ,ot null
Area$cd Char%&' ,ot null
C$stomer_mst
Cust$cd Char%&' (rimary key
Cust$name )archar*%*+' ,ot null
Prod$ct_mst
(rod$cd Char%&' (rimary key
(rod$name )archar*%*+' ,ot null
.ty$on$hand ,umber%/' ,ot null
-eorder$level ,umber%/' ,ot null
Ma0imum$level ,umber%/' ,ot null
Booked$1ty ,umber%/' ,ot null
Order_mst
Sameer Dehadrai Page% 1
Branch$cd Char%&'
2rder$no ,umber%/'
2rder$dt 3ate ,ot null
Cust$cd Char%&' ,ot null
-ep$cd Char%&' ,ot null
2rder$status Char%4' ,ot null
)alid$upto 3ate ,ot null
-emarks )archar*%*55'
Order_dtl
Branch$cd Char%&'
2rder$no ,umber%/'
(rod$cd Char%&' ,ot null
.ty ,umber%6' ,ot null
-ate ,umber%/*' ,ot null
&) 'ALI(IT) C*EC+S.
The follo!ing checks should be maintained"#
!tg_territor"_mst
Branch$cd must be a valid branch.
!tg_re#_mst
Area$cd must be a valid marketing territory.
Prod$ct_mst
Booked$1ty must not be negative.
Order_mst
Branch$cd and 2rder$no together is the (rimary key.
Branch$cd must be a valid branch.
Cust$cd must be a valid customer.
-ep$cd must be a valid marketing representative.
2rder$status can be Cancelled 3elivered or (ending. 3efault value is (.
)alid$upto should be at least one !eek later than 2rder$dt.
Order_dtl
Branch$cd 2rder$no and (rod$cd together is the (rimary key.
Branch$cd and 2rder$no must represent a valid order.
(rod$cd must be a valid product.
.ty and -ate must not be negative.
Sameer Dehadrai Page% 2
,eneral
Booked$1ty in (roduct$mst must reflect the total .uantity for pending orders at
all times.
.ty booked cannot be greater than .ty$on$hand.
-eorder Level cannot be greater than the Ma0imum Level.
,o order can be modified once it has been Cancelled or 3elivered.
7rite (ata-ase triggers to update the Booked$1ty and .ty$on$hand in the (roduct$mst.
.) /SE0 INP/T.
The follo!ing 8orms should be created"#
%a' (rograms for maintaining %inserting/updating/deleting' each of the follo!ing masters"#
4' Branch$mst
*' Mktg$territory$mst
6' Mktg$rep$mst
&' Customer$mst
+' (roduct$mst
%a' (rograms for accepting ne! orders and modifying pending orders.
The programs should display one order at a time
9t should display all items for the order
9t should display the customer name for the order
9t should display the product names for each item
9t should display the amount for each item
9t should display the total amount for the order
9t should perform the necessary validity checks.
%b' A separate program for marking orders as Cancelled or 3elivered.
This program is similar to the previous one. ,o changes other than updating the orders as
Cancelled or 3elivered are to be allo!ed.
1) 0EPO0TS.
%a' :ummary reports for listing order totals"#
4' Area#!ise.
*' -ep#!ise.
6' Customer#!ise.
&' (roduct#!ise.
Sameer Dehadrai Page% &
%a' A detail report to list order totals"#
Branch#!ise Area#!ise -ep#!ise (roduct#!ise
7ith summary totals at each level.
%b' A matri0 report to print area#!ise product#!ise sales summary.
The report should list Total .uantity and Average (rice.
%c' A report to print (ending Cancelled 3elivered or All orders during a given period. The
type of order and the period to be delivered by depends on runtime parameters. The
report should list all the details of an order including Customer ,ame (roduct ,ame
9tem#!ise Totals and Total 2rder )alue.
%d' A report to print all the items !ith the 1uantity belo! the reorder level.
,/I(ELINES.
4. Create necessary inde0es to make your 1ueries !ork faster.
*. All 1ueries and 3ML operations have to be performed on )ie!s.
6. Create se1uences !here re1uired %e.g. Branch$cd column of Branch$mst'. 9f necessary
the se1uences could be concatenated !ith character strings to produce alphanumeric
codes.
&. Create :ynonyms for all the :tored 2bjects in your application.
+. ;se :tored (rocedures :tored 8unctions and (ackages !here necessary.
/. To create the 8orms use (L/:.L programs integrated !ith :.L<(lus commands to
accept the input %use =>? along !ith =Accept? commands'. The programs should invoke
procedures that are part of a package to insert update delete in the vie!s that !ould
ultimately affect the tables.
@. The -eports have to be created using :.L<(lus %and (L/:.L if re1uired'.
Sameer Dehadrai Page% .

You might also like