The words you are searching are inside this book. To get more targeted content, please make full-text search by clicking here.
Discover the best professional documents and content resources in AnyFlip Document Base.
Search
Published by isaac ihueze, 2023-06-10 17:31:34

DOC-20220121-WA0001_230507_140954

DOC-20220121-WA0001_230507_140954

51 B. Activity Diagram Activity diagram visually presents a series of actions or flow of control in a system similar to flow chart or data flow diagram. It is basically a flow chart to represent the flow from one activity to another. Activity diagrams are graphical representations of workflows of stepwise activities and actions with support for choice, iteration and concurrency.


52 Figure 2: Activity diagram for BBTS. Login Logout Successful? bob user admin Submit budget proposal Submit &view approved expense View proposal Check balance Add/view department Recommend proposal Add user and bob Recommend expense Track by department View approved budget Print result View department Approve budget View department View expense/ Approve budget Yes Yes Yes Yes No No No


53 C. Data Flow Diagram (DFD) Data flow diagrams are an implementation of a method for representing systems concepts including boundaries, input/outputs, processes/sub processes, etc. Data flow diagrams do not show decisions or timing of events because their function is to illustrate data sources, destinations, flows, stores, and transformations. Figure 3 shows the data flow diagram of the system been developed. Figure 3: Dataflow Diagram for BBTS


54 3.2.2 New System Model / Architecture Adopted The model employed for the new system is a Rule based model. A rule based model is a set of If…Then… Else… command used to manipulate a system based on the specified conditions. 3.3 System Design This involves approaches used to come up with the system design that gave a conceptual solution which fulfills the requirement of the project. This process defines the elements of the system such as the architecture, modules, components and the data that goes through the system. Some of the system designs considered in this work is input, output and database design. 3.3.1. Input design This involves the selection of the best strategy for getting data into the computer system at the right time and accurately as possible. Input design must capture all the data that the system needs. The following are the input design specifications in this research; budget allocation input design, expense input design, sub-head input design and create account input design. Table 1 shows the input of the new system.


55 Table3: Budget allocation input design S/no Field name Data type Length Description 1 Fiscalyear String 15 It collect the year been budgeted for 2 Budgetmanager_id String 7 It holds the identifier of the department in question 3 Department String 45 Collect the department been budgeted for 4 Description String 80 Describes the nature of Budgets 5 Proposedbudget Integer 20 Collect the proposed amount 6 Status String 15 Describe the state of the budget 7 Recommendation String 200 It displays the recommendation made by the budget officer. 8 Submit Boolean Submits the proposal for consideration 9 Edit Boolean Terminate the current proposal 3.3.2. Output design This specifies the report of what is produced by the system. It is the most important and direct source of information to the user. The output design during system design communicates all the important milestones and problems that arise during system testing. The output design for this research is shown in table 2.


56


57 Table 4: Approved Budget output design S/no Field name Data type Length Description 1 Budget_id Integer Displays the unique identity of the Approved budget 2 Fiscal_year String 15 It Displays the budget year 3 Budget_manager_id String 7 It Displays the identifier of the department in question 4 Department String 45 Displays the head department 5 6 Description String 80 It Displays the description of what the budget is meant for. 7 Proposed_budget Integer 20 Collect the proposed amount 8 Recommendation String 200 It displays the recommendation made by the budget officer. 9 Status String 16 Display the status of the budget whether approved or rejected 10 Print Boolean Prints the record on Display 11 Edit Boolean Terminate the current proposal


58 3.3.3. Functional Decomposition Diagram (FDD) This is defined as a top down representation of process or function. This diagram is basically used for representing business function and operation in a hierarchical manner. The Figure 4 shows the functional decomposition diagram of the developed system. Figure 4: Functional Decomposition Diagram for BBTS. 3.4 Database design The database design involves production of a model of the data to be stored in the database. A data model is a diagram of the database design that documents and communicates how the database is structured. In designing this system, the target database management system (DBMS) used is MYSQL database. Table 3 shows the list of tables in the database


59 Table 5: List of Table in the Database S/no Table Name Description 1 User Keeps track of all the Departments and their respective budgets 2 Income Houses the budgeted details 3 Expenses Takes care of all the budget disbursement record/tracking and tracking. Table 6 displays the details about budget allocation. Table 6: budget allocation Table Design S/N Field Name Data Type Length Constraint Description 1 Budget_id integer 10 Primary Key Uniquely identifier of Budget allocation. 2 Fiscal_year Varchar 15 Budget year. 3 Department Varchar 45 The Department to be display. 4 Budget_manager _id Varchar 7 Foreign key Uniquely identifies department 5 Description Varchar 80 Describe what the budget is meant for 6 proposed_budget Integer 8 The current year budget 7 Recommendation Varchar 16 Recommendation to be made by budget officer. 8 Status Varchar 16 Display the status of the budget whether approved or rejected 9 Date Date Date of last status.


60 3.5 Program design This is the activity of progressing from a specification of some required program to a description of the program itself. Most phase models of the software life cycle recognize program design as one of the phases. The input to this phase is a specification of what the program is required to do. During the phase the design decision are made as to how the program will meet these requirements, and the phase is a description of the program in some form that provides a suitable basis for subsequent implementation. 3.5.1. Program Architecture (Class diagram) A class diagram in the Unified Modeling Language(UML) is a type of static structure diagram that describes the structure of a system by showing the system’s classes, their attributes, operations (or methods), and the relationships among objects. Figure 5 shows the system class diagram.


61 Figure 5: The New System Class Diagram. 3.5.2 Program Algorithm Algorithm is a step by step set of procedures to be followed to solve a given problem. Flowchart Flowcharts are graphical representation of program flow or an algorithm of a problem to be solved by a computer The program flowchart for this work is shown in Figure 6.


62 Figure 6: Flowchart diagram for BBTS.


63 IMPLEMENTATION AND RESULT 4.1 Program Implementation The implementation stage of software development is the stage in which a system specification is converted into an executable form. After a successful system analysis and design, then implementation follows. In the implementation phase, the project reaches fruition. A critical phase in SDLC (System Development Life Cycle) is the successful implementation of the system. This phase is where the real testing begins. 4.2 Program Testing Software or program testing is an investigation conducted to verify that computer software meets the requirement that guided its design and development. The primary purpose of testing this software is to detect software failure, error or missing requirements so that they may be corrected. Other purpose includes validation and verifying that a computer program or application works as expected. The new system was tested for user registration, budget proposal submission, proposal recommendation, budget approval and expense tracking. Table 5 shows the program testing case of the developed system.


64 Table 7: Test Cases S/N o Test Case ID Test Objectives Description Expected Outcome 1 Bud1 Test for budget proposal submission To test if budget proposals can be submitted for consideration Budget proposal is submitted to the budgeting office for consideration 2 Bud2 Test for budget recommendation To test if the recommendation can be made on the proposal been submitted The budget officer recommend the proposal submitted for approval 3 Bud3 Test for budget approval To test if the recommended proposal can be approved by the budgeting board The budgeting board approve the recommended budget 4 Bud4 Test for expense Request To test if expense request can be made The expense request is sent for approval 5 Bud5 Test for expense approval To test if expense request sent can be accessed by the budget officer The budget officer approves the expenses for withdrawal 6 Bud6 Test for report generation To test if the system can generate any report of the expenses made The system generate the report of expenses made, based on subhead and as well all expenses 7 Bud7 Test for overdraft To test if the user can request for more than The system restrict user from requesting more funds than he


65 what he has been budgeted for has been budgeted for 4.3 Test Result The testing of the application was dully carried out and the test result obtained is shown in the Table 8. Table 8: Test Results S/ No Test Case ID Test Objectives Result Obtained Reference 1 Bud1 Test for budget proposal submission The proposed budget submitted to the budgeting portal for recommendation and approval B1 2 Bud2 Test for budget recommendat ion The proposed budget is recommended for approval B2 3 Bud3 Test for budget approval Approval for the recommended budget is made B3 4 Bud4 Test for expense Request Expense request is sent for approval B4


66 5 Bud5 Test for expense approval The request is approved by the budget officer B5 6 Bud6 Test for report generation The report of all the expenses is generated B6 7 Bud7 Test for overdraft The system reject user expense request to prevent overdraft B7 4.4 Discussion of result The result of this system refers to the outcome of the system from the implementation of the procedures and methodology to developed Budgeting and Budget tracking system. The test case specification in Table 5 shows that the system is capable of facilitating budgeting processes and as well ensuring its tracking of all the expenditures. This record is saved in the database to prevent loss of record due to natural hazards as well prevents unauthorized access to the record. All functionalities of the system are achieved sequel to the requirement specification of the system. 4.5 System Requirement Requirements here refer to the facilities to be used to drive or run the new system. System requirement are the necessary specifications that computer must have in order to use the software/hardware for successful execution of the project. Failure to


67 meet these requirements can result in installation problems or performance issues. For efficient and effective operation of the new system, the following are required. i. Hardware: A sound piece of personal computer with the minimum of; a. 2.00GB of RAM (Random Access Memory). b. 20GB of hard disk drive storage space. c. Intel (R) Pentium 1.80GH processor or Higher. d. One unit of Monitor and a unit of enhanced keyboard (for desktop computer) ii. Software: This system is designed to run efficiently on a. Windows 7 or higher. b. A web browser: Mozilla Firefox, Chrome, Opera mini etc c. Adobe Dreamweaver d. Hypertext Preprocessor(PHP)editor and e. MySQL(improved) server database management system. 4.6 System Implementation i. Signup Page This page allows the creation of new system user, it also allows the user to specify the category they belong to, there are three categories of the system users and they include the admin, Board of Budgeting member (bob) and User/department.


68 Figure 7: Budget signup page.


69 ii. Login Page This page allows existing user gain access the application by entering their username and password. Upon successful login the system will redirect the user to their respective home page. Figure 8: Budget login page.


70 iii. Budget proposal page This page allows the user (Head of Department) to propose a budget which might be an income budget or expenses request budget, such budget will be on a pending state pending approval from the board of budgeting, it also allow the user to track and view expenses report from previous year up till date. Figure 9: Budget approval page.


71 iv. Budget recommendation After budget proposal is sent, before such budget is approved or rejected by the board of budgeting, there is need for such budget to go through recommendation, the proposed budget is recommended for approval.This page allows the recommendation of budgeting by the admin. Figure 10: Budget recommendation page.


72 v. Budget approval/Rejection page This page allows the approval or rejection of budget by the board of budgeting (bob) after such budget have been recommended by the admin. This averts the pending state of the budget. Figure 11: Budget approval and rejection page.


73 vi. Manage system users page This page allows the administrator to manage the system user, the admin can add and delete the system user. Figure 12: Budget manage system user page.


74 4.7 User Documentation The login information is secured from the administrator, after which the user login to the system. If user is user, the system takes one to the user portal where he/she could send budget proposal or expense request, view sent and approved proposals/expenses as well expenses made. If the user is a member board of budget, it takes he/she where he can approve the recommended budget, as well view the approved budgets and the expenses made. Also, if one is admin, the system lunches into the admin portal where he can recommend budget proposals for approval by the BOB, recommend expenses, tracks expenses, print reports and delete same, after which the users logout of the system. 4.7 System Changeover It is the process of replacing the old system with the new system. System changeover is the process of putting the new information system and retiring the old system. This is the stage where the old system has to give way for the new system to be adopted. The researcher recommends parallel changeover which requires full operation of both systems for specific period of time while they are compared side by side until gradually, the new system completely takes over and the old system is terminated. The advantage of this strategy is that the failure of the new system will not affect the working of the organization. However, the organization can still use the traditional


75 way of budgeting, but with time they will be conversant with the new system thereby gradually dropping the traditional approach of budgeting and tracking system by adopting the new system as medium for which it was developed.


76 CONCLUSION & RECOMMENDATION 5.1 Conclusion Computerized budgetary system is providing to the optimum way or means for achieving ease and comfort of budgetary system, it has brought new opportunities to government, business and education in facilitating their budgetary processes. Since the budgetary system in Nigeria Universities has been manual, the problems will be eliminated as the new system would be introduced. Also Design and developments are a continuous process; this is the same in computer and software development. However the effectiveness and efficiency of this new system provide room for further improvement. After series of test, the researcher therefore concludes that Budgeting and Budget tracking System using Rule Based Model is able to budget and track same during implementation. In terms of correctness of results, Budgeting and Budget tracking System using Rule Based is more certain. In terms of user friendliness and usefulness, users find it interesting and easy to dialog with since it has easy interface and self-explained menus and links. 5.2 Recommendation The Nigeria Universities should implore the use of online budgetary system in their operations as it will help eliminate stress, inefficiency, time wastage and errors of miscalculation, working at any place and will equally reduce fraud.


77 Specifically, the system is recommended to Joseph Sarwuan Tarka University, Makurdi for their budgeting and its tracking for easy, less expensive, secured, and timely budgeting processes. The researcher also recommends that, any future work of the same nature should focus on the use of multi-criteria decision making methods such as Fussy set, Neutrosophic logic set, TOPSIS, PROMETHEE, AHP etc. to enhance the budgeting aspect of the system.


78 REFERENCES Adebisi, J. (2005). Public sector accounting and finance.Ilorin: Rajah Dynamics Publishers. Akintoye, I.R. (2008) Reducing Unemployment through the Informal Sector: A Case Study of Nigeria. European Journal of Economic and Administrative Sciences, 11,97-106. Amamieyenimighan, A. E. C. (2009). New system of public sector budgeting: A technique and strategy for the development of Nigerian economy. International Journal of Economic and Development Issues, 3, (1&2), 118- 129. Anderson B. (2005).Formalism,Technique and Rigour in Use Case Modeling. J. Object Technol. 4(6), 15-28,2005. Bekaroo G, Sunhaloo S (2007) Intelligent online budget tracker. In: Computer and IT education conference, Oct 2007, pp 111-124 6. Bocharov, V.V. (2013).Financial planning and budgeting. St. Petersburg: Publishing house of St.Petersburg University, 90. Borgia, C.R. & Coyner, R. S. (1996). The evaluation and success of budgeting systems at institutions of higher education. Public Budgeting and Financial Management 7, (4), 467-477. Retrieved fromhttp://booksgoogle.com.ng/books?id=R3LLmTJWxwC&pg=PA558 &lp... on February 25, 2012. Brynes C. (2005). Information Security Trends 2005–2007. The Gartner Group. Don Vito, (1969). Planning Programming Budgeting System. Retrieved from www.rand.org on July 19, 2012. Durosaro, D. O. (2002). Management of school finance. In F. Durosaro & S. Ogunsaju (Eds.), the craft of educational management, (pp.168-178). Ilorin: Indemac Print Media. Garrison, R. H., Noreen, E. W., and Seal, W. (2003).Management Accounting.New York: McGraw-Hill Education, European Edition. International Journal Of Environmental &Scienceeducation 2016, Vol. 11, NO. 15, 7726-7744 Accepted 27 August 2016 looks publishers open access.


79 GFOA and other stakeholders (1998). Entitled. Recommended budget practices: A Framework for Improved State and Local Government Budgeting. Henderson, Ian. (1997). Does Budgeting Have To Be So Troublesome? Management Accoumting: Magazine for Chartered Management Accountants. 80(4). P.1. Hornyak (2008) https://www.bartleby.com/essay/Computerized-BudgetingFK33QKEK6YYS. Retrieved: Novermber 20, 2021. Hornyak, Steve (1998). Budgeting Made Easy. Management Accounting: Magazine for Chartered Management Accountings. 80(4). P.1. https://www.communitiesforequity.com/essay/computerized-budgeting-148103 Retrieved: Novermber 17, 2021. Hull University Business School (nd.). Identifying the key advantages and disadvantages of a performance budgeting system-a program budgeting system and a line-item budgeting system. Retrieved from http:wiki.answers.com/Q_identifying_key_advantages_and_disi on July 19. 2012. Ilorin: Goshen Print Media Ltd. International Bank for Reconstruction and Development/The World Bank (1998). Public expenditure handbook, Washington D.C.: Retrieved from http://wwwl.worldbank,org/publicsector/pe/handbook/pem98.pdf. Jacimovic and Fonseca (2017). Briefing Note on budget tracking approaches in WASH sector: methods, applicability and examples. Jae Shim & Joel Siegel (2005). Budgeting Basics and Beyond. Canada. Library of Congress Cataloging-in-Publication Data.Published by John Wiley &Sons, Inc., Hoboken, New Jersey. John O. and Jamie L.(2015). Planning, Budgeting and Forecasting: An eye into the Future. A KPMG and ACCA Thought Leadership Report. Jonsson & Akerlund,(2021).Journal of Applied Finance & Banking, vol.7, Nov. 3, 2017, 111-120 Kazeem O. F., Hakeem O. F. and Ojekele, R.O. (2014).Budgetary and Management Control System for Improved Efficiency in Public Sector: The Implications of “Babariga–Style” Budgeting Approach.Scholarly Journal of Business Administration, Vol.4(2)pp.44-5 February, 2014.


80 Khan, M., & Jain, P. (2010).Management accounting: Text, problems and cases. New Delhi: Tata McGraw Hill Education Private, 47 p. Kobie F. (2009). https://openviewpartners.com/blog/its-budget-time/ Malena, Carmen, ed. (2009). From Political Won’t to Political Will:Building Support for Participatory Governance.Sterling, VA: Kumarian Press. Obayan, F.O.B. (2006). Educational financing: Principles, trends & strategies. Oduwaiye, R. O. (2004). Influence of role conflict in administrative effectiveness of academic staff in Nigerian Universities. International Journal of Educational Management, 3, 190-199. Olomola, A.S. (2000). Budgeting and Fiscal Policy Issues in Nigeria. Invited Paper Presented at a Workshop Organized in NISER for LegislativeAttaches, April 12, 2000. Olomola, A.S. (2006). Performance Management and Its Relevance forEffectiveBudgetary Process in Nigeria.In Oni, B. and Olomola, A.S.(eds.), Towards Effectiveness of the Budgetary Process in Nigeria. Ibadan: NISER. Omopariola, O. (2003). Government budgeting in principles, policies and practice. Ile-Ife: Obafemi Awolowo University Press. Omoregbe,N.A., Azeta,A.A., Adewumi, A. &Edeh, E. E. (2014), Development of a file tracking system for tertiary Institutions; Department of Computer and Information Sciences, Covenant University (NIGERIA) Proceedings of EDULEARN14 Conference, 7th-9th July 2014, Barcelona, Spain. Online available at:http://www.gartner.com Ovwigho, V. M. (2004). The theory and practice of educational administration and planning in Nigeria. Benin City: Justice-Jeco Press and Publishers Limited Paramasivan, C., & Subramanian, T. (2009).Financial management.NewDelhi: New Age International (P), 329. Scott V. (2008). President of the Bookkeeping Department Seal. W.B. and Amanda, B. (2011). Interpreting the Dynamics of Public Sector Budgeting: A Dialectic of Control Approach, Finance, Accountability and


81 Manage. J. 27(4): 0267-4424, Blackwell Publishing Ltd, 9600 Garsington Road. Shim, J. K. &Siegel,J.G. (2008).Financial Management.London: Barron’s Business Library, 73 p. Shulz, Wayne. (2009). Online Payroll Can Save You Money: Letting Someone Ease Wade Through The Process Can Benefit Clients. Accountancy Technology. P. 18. Silva, M.W.K.P.; Ranil, R.H.G.; Fonseka, R.M., (2012). Luffa cylindrica (L.) M. Roemer (Sponge Gourd-Niyan wetakolu): An emerging high potential underutilized cucurbit. Trop. Agric Res., 23(2): 186-191. Tatiana M. Kovalevaa, Oleg A. Khvostenkoa, Alla G. Glukhovaa, Veronica V. Nikeryasovaband Denis E. Gavrilovc(2016). The Budgeting Mechanism in Development Companies; Samara State Economic University, Samara, www.accaglobal.com/content/dam/ACCA_ National/russia/disc/report-kpmg-acca-pbf.pdfRetrieved:May20, 2019. Tayib, M. & Hussin, M R. A (n. d.). Good budgeting practices in Malaysian public universities. Journal of Finance and Management in Public Services, 3, (1), 41-51. Retrieved from http://www.j.budgetinginMalaysia.pdfAdobeReader on January 14, 2010. Wilson, J. D. (2002). Models of centralized and decentralized budgeting within universities. Michigan: Retrieved from [email protected] on January 14, 2010. Wright and Wright S. A (2008). Journal of Information Systems, Information system assurance for enterprise resource planning systems: implementation and unique risk considerations. Lagos, Nigeria. Vol. 16, pp. 99-113 Yang Q. (2010).The Impact of the Budgeting Process on Performance in Small and Medium-Sized Firms in China.Doctoral Dissertation, University of Twente, Netherlands. Printed by: Print Partners Ipskamp, Enschede


82 APPENDICES Appendix A (Source code) USER LOGIN <?php include("functions.php"); $wrongpass = ''; $wronginfo = '<div class="alert alert-danger" role="alert"> <span class="glyphicon glyphicon-remove" aria-hidden="true"></span> Wrong login detail</div>'; if(isloggedin()==FALSE) { } else { header("location:home.php"); } if(isset($_POST['email']) && ($_POST['pass'])) { $pass= mysqli_real_escape_string($conn, $_POST['pass']); $email= mysqli_real_escape_string($conn, $_POST['email']); $query="SELECT * from users where uemail='$email'"; $result = $conn->query($query); if ($result->num_rows < 1) { $wrongpass = $wronginfo;


83 } while($row = $result->fetch_assoc()) { if ($row['category'] == 1){ if(($pass)==$row['upass']) { $_SESSION['logged_in']=TRUE; $_SESSION['id']=$row['uid']; $_SESSION['unaam']=$row['uname']; session_start(); header("location:home.php"); } else { $wrongpass = $wronginfo; } } if ($row['category'] == 2){ if(($pass)==$row['upass']) { $_SESSION['logged_in']=TRUE; $_SESSION['id']=$row['uid']; $_SESSION['unaam']=$row['uname']; session_start(); header("location:admin.php");


84 } else { $wrongpass = $wronginfo; } } if ($row['category'] == 3){ if(($pass)==$row['upass']) { $_SESSION['logged_in']=TRUE; $_SESSION['id']=$row['uid']; $_SESSION['unaam']=$row['uname']; session_start(); header("location:bob.php"); } else { $wrongpass = $wronginfo; } } } } ?>


85 BUDGET PROPOSAL <?php $uid=$sid; if(isset($_POST["entrydate"]) && trim($_POST["entrydate"]) != "") { $entrydate = $_POST["entrydate"]; $entrydate = strtotime($entrydate); $entrydate= date('Y-m-d', $entrydate); $enttype = mysqli_real_escape_string($conn, $_POST["enttype"]); $edetail = mysqli_real_escape_string($conn,$_POST["edetail"]); $eamount = mysqli_real_escape_string($conn, $_POST["eamount"]); $edetail = strip_tags($edetail); $eamount = strip_tags($eamount); $eamount = floatval($eamount); if (isset($_POST["enttype"]) && trim($_POST["enttype"]) == "1") { $sql = "INSERT INTO expense (pname, pprice, uid, date, status , department) VALUES ('$edetail','$eamount','$uid','$entrydate','Pending','$dept')"; if ($conn->query($sql) === TRUE) { echo ""; } else { echo "Error: " .$sql. "<br>" . $conn->error;


86 } } elseif (isset($_POST["enttype"]) && trim($_POST["enttype"]) == "2") { $sql = "INSERT INTO income (income, tvalue, uid, date,status,department) VALUES ('$edetail','$eamount','$uid','$entrydate','Pending','$dept')"; if ($conn->query($sql) === TRUE) { } else { echo "Error: " . $sql . "<br>" . $conn->error; } } } ?> INCOME BUDGET RECOMMEND <?php $sql = "SELECT * FROM income WHERE isdel=0 AND id='$id' ORDER by date"; $result = $conn->query($sql); $inctotal = 0; if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $exdate = strtotime($row["date"]); $exdate = date('d M Y', $exdate);


87 echo "<tr><td> " . $row['id'] . "</td><td> " . $row['department'] . "</td> <td> " . $row['uid'] . "</td> <td> " . $exdate. "</td> <td> " . $row["income"]. " </td><td> " . $row["tvalue"]. "</td> <td> " . $row["status"]. "</td> <td> " . $row["recommendation"]. "</td> </tr>"; $inctotal+=$row["tvalue"]; } } else { echo ""; } ?> <?php if(isset($_POST['submit'])) { $recommend=$_POST['recommend']; $recommendQuery = "UPDATE income SET recommendation='$recommend' Where id='$id' "; if (mysqli_query($conn, $recommendQuery)) { echo " <script> alert('Budget Recommendation Successfull!'); </script> "; } header("location:index.php?id='".$id."'"); }


88 ?> EXPENSE REQUEST RECOMMEND <?php $sql = "SELECT * FROM expense WHERE isdel=0 AND id='$id' ORDER by date"; $result = $conn->query($sql); $inctotal = 0; if ($result->num_rows > 0) { while($row = $result->fetch_assoc()) { $exdate = strtotime($row["date"]); $exdate = date('d M Y', $exdate); echo "<tr><td> " . $row['id'] . "</td><td> " . $row['department'] . "</td> <td> " . $row['uid'] . "</td> <td> " . $exdate. "</td> <td> " . $row["pname"]. " </td><td> " . $row["pprice"]. "</td><td> " . $row["status"]. "</td> <th>".$row["recommendation"]."</th></tr>"; } } else { echo ""; } ?> <?php if(isset($_POST['submit'])) { $recommend=$_POST['recommend']; $recommendQuery = "UPDATE expense SET recommendation='$recommend' Where id='$id' ";


89 if (mysqli_query($conn, $recommendQuery)) { echo " <script> alert('Budget Recommendation Successfull!'); </script> "; } } ?> EXPENSE REQUEST APPROVAL <?php $today = date("Y-m-d"); $dtstart = date("1950-m-d"); $thiyear = date("y-01-01"); $tisum = 0; $query = "SELECT SUM(tvalue), status FROM income WHERE date >= '$dtstart' AND date <= '$today' AND isdel=0 AND recommendation !='' AND status ='Approved'"; $result = $conn->query($query); while($psum = $result->fetch_assoc()) { if ($psum["status"] == 'Approved'){ $tisum = $psum['SUM(tvalue)']; }


90 if ($tisum == '') {echo "Add income to display here";} else {echo $tisum;} } ?> <?php $tesum = 0; $query = "SELECT SUM(pprice), status FROM expense WHERE date = '$today' AND isdel=0 AND recommendation !='' AND status ='Approved'" ; $result = $conn->query($query); while($psum = $result->fetch_assoc()) { if ($psum["status"] == 'Approved'){ $tesum = $psum['SUM(pprice)']; } if ($tesum== '') {echo "No Expense Today";} else {echo $tesum;} } ?></span> <!-- Today's Expenses End --> <br><strong>Total Expenses :</strong> <span class="label label-danger" id='exptop'><?php


91 $tesum = 0; $query = "SELECT SUM(pprice), status FROM expense WHERE date >= '$dtstart' AND date <= '$today' AND isdel=0 AND recommendation !='' AND status ='Approved'"; $result = $conn->query($query); while($psum = $result->fetch_assoc()) { if ($psum["status"] == 'Approved'){ $tesum = $psum['SUM(pprice)']; } if ($tesum== '') {echo "Add expenses to display here";} else {echo $tesum;} } ?></span> <br><strong>Total Balance :</strong> <span class="label label-default"><?php $rbalance = $tisum - $tesum; if ($tisum == '') {echo "NIL";} else {echo $rbalance;} if ($rbalance < $exp){ echo " <script> alert('Insufficient Fund for Proposed Budget!');


92 location.href = 'bob.php'; </script> "; } else { $approv = "UPDATE expense SET status='Approved' WHERE id = '$id'"; if( mysqli_query($conn,$approv)){ echo "<script type='text/javascript'> alert('Budget Approved!')</script>"; header("Refresh:0; url=bob.php"); } } ?> INCOME BUDGET APPROVAL <?php session_start(); if(!isset($_SESSION["id"])) { header("location:index.php"); } ?> <?php include("functions.php"); $id = $_GET['id']; $approv = "UPDATE income SET status='Approved' WHERE id = '$id'"; if( mysqli_query($conn,$approv)){ echo "<script type='text/javascript'> alert('Budget Approved!')</script>"; header("Refresh:0; url=bob.php"); }


93 ?> LOGOUT <?php session_start(); include("functions.php"); $_SESSION['logged_in']=FALSE; session_unset(); session_destroy(); header("location:index.php"); ?>


94 Appendix B (Program Interface) MY PROPOSALS B1: Submitted Budget proposals RECOMMENDED BUDGET PROPOSALS B2: Recommended Budget Proposal


95 APPROVED BUDGETS B3: The Approved budget


96 EXPENSE APPROVAL REQUEST B4: Expense Request sent on display. APPROVED EXPENSE REQUEST B5: Approved expense request budget report on display


97 BOARD OF BUDGETING PORTAL APPROVED EXPENSE REPORT SHEET B6: Report of Approved Expenses OVERDRAFT BUDGET B7: Expense request rejected due to overdraft.


98


Click to View FlipBook Version