Professional Documents
Culture Documents
"Caraga State University-Electric Billing System": Proponent: Ucang, Archie M. Aparecio, Joe Mar S
"Caraga State University-Electric Billing System": Proponent: Ucang, Archie M. Aparecio, Joe Mar S
System Analysis:
1.Data Gathering
a. Interviews
Interviews were done by the proponents
to the involved offices (accounting office,
planning office, Office of the In-charge for
IGP's) and clients to get necessary information
to be used.
b. Data Collection
• ENTRY MODULE
• No same staff and client’s id must be entered in the database for
it is their primary keys.
• While(query!=null)
• {
• Scan database entry;
• If(id is in database)
• {
• Return msg “id already exist”;
• }
• }
• Bills will be automatically generated and stored in the payable
table as soon as meter readings are entered.
• $KWH=$present-$previous;
• $bill=$KWH*$rate;
• Insert into payable (client_id, meter_no, owner,month,year,
business_name, present, previous, KWH, Bill) values
(‘$id’,’$meter_no’,’$owner’,’$month’,
$year’’,’$bname’,’$pres’,’$prev’,’$kwh’,’$bill’);
• Payable table will now be the bill of the client containing
its payable of the stated month.
• $month /*month chosen to be paid*/
• $amount /*amount the client paid, it is possible that the
client won’t fully paid the bill*/
• $or_number /*or will be inputted*/
• Save the entered data in the payment table.
• Insert into payment (or_number, client_id, meter_no,
KWH, bill, amout_paid, date, month) values
(‘$or_number’,’$client_id’,’$meter_no’,’$KWH’,’$bill’,’$
amount’,’$date’,’$month’);
• Then update the payable table by subtracting the
payable by the amount paid by the client.
• $bal=$amount;
• Update payable SET $bill=$bal where
client_id=’$client_id’ and meter_no=’$meter_no’;
• Receipt will be printed as long as payment is done.