• Tidak ada hasil yang ditemukan

FLOW-DIAGRAM FOR NEW ENTRY OF PRODUCTION ORDER

make Temp. file empty

Open part list file and fetch the record.

pn

=

Part No.

q = qnty. in part list * qnty. to be produced

"'..

Open

Q1

=

Q2

=

Delete rec. and b

=

b - qnty.

reserve file, count qnty. of this item qnty. reserved under this order

qnty. not reserved under this order

fetch rec. from reserve file ith this part no. & order no.

qnty ( b

reserved qnty, qnty. = b delete rec. and

b

= a

b

qnty

>

b

qnty = qnty. - b

and b

=

a

Stock

=

present stock in material file

=

stock -

Q

stock = stock - q

y

free stock

>=

q

rest = q - free stock stock = stock - free stock

Append record in Bond file with qnty. = rest

Append rec. in temporary file with details i.e., part no., present stock, previous stock, delivered qnty., bonded qnty. etc

Append rec. in Production order file with the part no., order no., target date

Append rec. for this item and this order with Status = "Order Placed"

Print the temporary file along with the part no. of the item and the order no.

any more item to be taken under production?

y

call the same program again

Fig.-20 (end)

N

Data update

Data update is considered a regular process. When some thing to monitor and to record the latest developments, data updating operations are required. In this software data update operation is needed:

to record present production condition to record present procurement condition

to record any change in customer ordered quantity to record the delivery bonded materials, etc.

The common features of any type of data updating operations are as follows:

Selection and record where data to be updated. It can be done by displaying all the relevant records and asking user to select the record which are to be updated .

. All other data which are not subject of updating can not be accessible.

Validity check of entered data in all respect must be done.

All the relevant data of different database files are to be updated simultaneously to avoid data inconsistency.

One typical case out of all data update operation is update procurement process.

The flow-diagram and algorithm of this operation are written below. Those of all other data update operation are given in Appendix-A.

Fig.-21 shows the flow-diagram of data update program for procurement process.

a) The program at first display 10 records of order No" (or less if end of file encountered) from procurement order file and asks the user to select which one order to be updated. If user types no Record No., ne)rt 10 records (or less) will be displayed and program will ask user to select record to update and so on.

If user does not select any record and end of file encountered program will be terminated.

If user selects and if selection is out of range, error message will be given and he will ask to select again"

b) If selection is correct, the program will display 10 records (or less) of items order under the selected order number from the procurement item file and user will be asked to select the record which is to be updated. The selection method is similar as a).

c) ,!hen the procurement item under that procurement order is selected properly, all the records of procurement item file with these part number and procurement order number are displayed. The user then asked from 1st record to update the quantity. User may skip to update expected date of arrival without upd~ting the quantity.

If user enters new quantity and if it is less than zero, error message is given and user is asked to enter again. And if is not less than zero user will be asked to update expected date of arrival.

d) After entry the expected date of arrival, program will set to update next

record (if any) with the same procedure.

e) When all the records are updated, program counts the total quantity of the items at present (01).

f) All the records of procurement status file with these part number and procurement order number are displayed. The user then asked from 1st record to update the quantity.

quantity.

User may skip to update status without updating the

If user enters new quantity and if it is less then zero, error message is given and user is asked to enter again. And if it is not less than zero user' will be aSK,ed to update status. After entry, it is to be checked whether the entered value is legal or not. If not legal, user is asked to enter again.

g) After entry of status, program will set to update next record (if any) with the same procedure.

h) ,Ihen all the records are updated the total quantity (Q2) of this items under this order in procurement status file is calculated.

i) If 01=Q2, update operation is end.

j) If 01<02, err"or message will be given and user will be asked to update quantity of all those records of procurement status file once again.

Dokumen terkait