Purchase Order Management System using PHP Free Source Code

This is a Purchase Order Management System in PHP. This is a simple web application that manages a certain company's Purchase Order Records. This project can help to store and retrieve the Purchase Order records of the company easily. This mini-project can be used also in developing an Inventory Management System. It has a pleasant user interface and user-friendly functionalities.

About the Purchase Order Management System

This Purchase Order Management System can store the list of all company's suppliers for easily retrieving the suppliers' data upon generating the purchase order. It also stores the list of Items that the company possibly purchased from their suppliers. Both the mentioned features have CRUD (Create, Read, Update, and Delete) operations. Talking about generating the Purchase Order, the system can generate a printable Purchase Order Slip/Request.

I developed this project using the following:

Features

Admin Panel

Staff-Side

System Snapshots of some Features

Item List Page

Purchase Order Management System

P.O.List Page

Purchase Order Management System

Supplier List Page

Purchase Order Management System

Purchase Order's View Page

Purchase Order Management System

How to Run ??

Requirements

Installation/Setup

  1. Open your XAMPP/WAMP's Control Panel and start Apache and MySQL.
  2. Extract the downloaded source code zip file.
  3. If you are using XAMPP, copy the extracted source code folder and paste it into the XAMPP's "htdocs" directory. And If you are using WAMP, paste it into the "www" directory.
  4. Browse the PHPMyAdminin a browser. i.e. http://localhost/phpmyadmin
  5. Create a new database naming purchase_order_db.
  6. Import the provided SQLfile. The file is known as purchase_order_db.sql located inside the database folder.
  7. Browse the Purchase Order Management System in a browser. i.e. http://localhost/purchase_order/ for the system login portal.

Default Admin Access Information

Username: admin
Password: admin123

DEMO

That's it. You can now explore the features and functionalities of this Purchase Order Management System in PHP. I hope this project will help you with what you are looking for and you'll find something useful for your future projects.

Explore more on this website for more Free Source Codes and Tutorials.

Enjoy :)

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted by Smarts (not verified) on Mon, 09/27/2021 - 09:20

doubt

hello congratulations. great job can you help me put some rules in the system? 1 - a seller cannot see or delete Purchase Order of other sellers, when logging in he can only see and edit his orders, if its status is pending or canceled, if approved the PO can no longer be deleted or edited. 2 - each user can only view, edit or delete their purchase orders. thanks

Submitted by cleo (not verified) on Wed, 12/08/2021 - 11:31

Access from mobile phone

Great program, but why i can't access the program using mobile phone, its nothing wrong with my localhost, can you help me?

Submitted by waghamode vish… (not verified) on Sun, 12/12/2021 - 02:04

it is showing errors

Warning: mysqli::__construct(): (HY000/1049): Unknown database 'purchase_order_db' in D:\xamp1\htdocs\purchase_order\classes\DBConnection.php on line 18 Fatal error: Uncaught Error: mysqli object is already closed in D:\xamp1\htdocs\purchase_order\classes\SystemSettings.php:16 Stack trace: #0 D:\xamp1\htdocs\purchase_order\classes\SystemSettings.php(16): mysqli->query('SELECT * FROM s. ') #1 D:\xamp1\htdocs\purchase_order\classes\SystemSettings.php(137): SystemSettings->load_system_info() #2 D:\xamp1\htdocs\purchase_order\config.php(9): require_once('D:\\xamp1\\htdocs. ') #3 D:\xamp1\htdocs\purchase_order\index.php(1): require_once('D:\\xamp1\\htdocs. ') #4

thrown in D:\xamp1\htdocs\purchase_order\classes\SystemSettings.php on line 16 Fatal error: Uncaught Error: mysqli object is already closed in D:\xamp1\htdocs\purchase_order\classes\DBConnection.php:28 Stack trace: #0 D:\xamp1\htdocs\purchase_order\classes\DBConnection.php(28): mysqli->close() #1 [internal function]: DBConnection->__destruct() #2
thrown in D:\xamp1\htdocs\purchase_order\classes\DBConnection.php on line 28

Submitted by Angelic Reyes (not verified) on Mon, 04/11/2022 - 00:37

Question Regarding The System

Why is the Item list still 0 even though it have 100 items?

Submitted by ov (not verified) on Sat, 04/23/2022 - 15:26

SQL İnjection :) ``` POST …

SQL İnjection :) ``` POST /purchase_order/classes/Login.php?f=login HTTP/1.1 Host: localhost Content-Length: 32 sec-ch-ua: ";Not A Brand";v="99", "Chromium";v="94" Accept: */* Content-Type: application/x-www-form-urlencoded; charset=UTF-8 X-Requested-With: XMLHttpRequest sec-ch-ua-mobile: ?0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.81 Safari/537.36 sec-ch-ua-platform: "Windows" Origin: http://localhost Sec-Fetch-Site: same-origin Sec-Fetch-Mode: cors Sec-Fetch-Dest: empty Referer: http://localhost/purchase_order/admin/login.php Accept-Encoding: gzip, deflate Accept-Language: zh-CN,zh;q=0.9 Cookie: PHPSESSID=fipkbpl70m5ol078ohb2d50ais Connection: close username=admin&password=admin123 ```

Submitted by J Kendall Eley (not verified) on Sat, 06/25/2022 - 08:32

Approval process

Is there a process designed so that the po requires approval by an administrator?

Submitted by Mike Baskin (not verified) on Sun, 06/26/2022 - 19:39

Cool and simple program.

Good start but a little too simple. Products need to have a purchase price saved with them. Got it to load on a web server with just a little tweaking of some of the files so I can use it online.

Submitted by Yashunandan Sureka (not verified) on Sun, 02/12/2023 - 23:53

In reply to Cool and simple program. by Mike Baskin (not verified)

Can you help me with the…

Can you help me with the code for the preserved products that you have tweaked?

Submitted by Leonilson Chaves (not verified) on Fri, 09/09/2022 - 22:51

hello, very good your…

hello, very good your project, can you make the database available in the file?, it is not present

Submitted by ayaz ahmaed (not verified) on Thu, 10/13/2022 - 04:41

2 things to change

Hallo, Nice Projekt but need 2 things can u help make it posibel 1. by Purchase Order Page need to ist all item and custmer just add Qty by product 2. send the order automatic as PDF by email to the supplier

Submitted by nishant gholap (not verified) on Mon, 03/06/2023 - 00:17

its not work in 2023

its not work in 2023

Submitted by Anonymous (not verified) on Sun, 05/07/2023 - 12:39

In reply to its not work in 2023 by nishant gholap (not verified)

Why?

Submitted by Anonymous (not verified) on Tue, 03/07/2023 - 12:06

Warning: mysqli::__construct…

Warning: mysqli::__construct(): (HY000/1049): Unknown database 'purchase_order_db' in D:\xamp1\htdocs\purchase_order\classes\DBConnection.php on line 18 Fatal error: Uncaught Error: mysqli object is already closed in D:\xamp1\htdocs\purchase_order\classes\SystemSettings.php:16 Stack trace: #0 D:\xamp1\htdocs\purchase_order\classes\SystemSettings.php(16): mysqli->query('SELECT * FROM s. ') #1 D:\xamp1\htdocs\purchase_order\classes\SystemSettings.php(137): SystemSettings->load_system_info() #2 D:\xamp1\htdocs\purchase_order\config.php(9): require_once('D:\\xamp1\\htdocs. ') #3 D:\xamp1\htdocs\purchase_order\index.php(1): require_once('D:\\xamp1\\htdocs. ') #4

thrown in D:\xamp1\htdocs\purchase_order\classes\SystemSettings.php on line 16 Fatal error: Uncaught Error: mysqli object is already closed in D:\xamp1\htdocs\purchase_order\classes\DBConnection.php:28 Stack trace: #0 D:\xamp1\htdocs\purchase_order\classes\DBConnection.php(28): mysqli->close() #1 [internal function]: DBConnection->__destruct() #2
thrown in D:\xamp1\htdocs\purchase_order\classes\DBConnection.php on line 28

Submitted by Kiart (not verified) on Tue, 12/12/2023 - 11:02

Avartar not change

Save the avatar is complete but not change. Which folder need permission 777. Thank you

Submitted by Christian Reyes (not verified) on Thu, 01/04/2024 - 22:28

Possible work?

Hi Carlo, Contact me please @ chris.ipx27@gmail.com I just need to customize and request a couple of new things willing to pay :)

Submitted by SKS JAY (not verified) on Fri, 04/26/2024 - 14:25

Not Found The requested URL was not found on this server. Apach

After i run the project it show Not Found The requested URL was not found on this server. Apache/2.4.58 (Win64) OpenSSL/3.1.3 PHP/8.2.12 Server at localhost Port 80

Submitted by Baw (not verified) on Mon, 05/06/2024 - 15:35

Error Menu Purchase Orders

On menu list purchase orders cant remove the po when hit continue button with error "an error occured". Help Please?Thanks

Submitted by Dongg (not verified) on Sun, 08/11/2024 - 15:19

Error

Fatal error: Uncaught mysqli_sql_exception: Unknown database 'purchase_order_db' in C:\xampp\htdocs\purchase_order\classes\DBConnection.php:18 Stack trace: #0 C:\xampp\htdocs\purchase_order\classes\DBConnection.php(18): mysqli->__construct('localhost', 'root', Object(SensitiveParameterValue), 'purchase_order_. ') #1 C:\xampp\htdocs\purchase_order\classes\SystemSettings.php(8): DBConnection->__construct() #2 C:\xampp\htdocs\purchase_order\classes\SystemSettings.php(136): SystemSettings->__construct() #3 C:\xampp\htdocs\purchase_order\config.php(9): require_once('C:\\xampp\\htdocs. ') #4 C:\xampp\htdocs\purchase_order\index.php(1): require_once('C:\\xampp\\htdocs. ') #5

thrown in C:\xampp\htdocs\purchase_order\classes\DBConnection.php on line 18

Add new comment

Share Source Code or Tutorial

Do you have source code, articles, tutorials or thesis to share? Submit it here by clicking the link below