Sales and Inventory System with Credit Management using PHP Full Source Code


This is an advanced Sales and Inventory System programmed using PHP. The PHP extension used is MySQLi. This system manages the company stocks, sales, and customer credits. The system can also manage multiple branches of the company and the admin can assign a system user to a specific branch and this user can only manage the data only to his/her branch. The administrator of this system can generate the overall report per branch and all branches.

Here’s the list of features on this system:

  • Purchase
  • Stockin
  • Payment
  • Credit
  • Products
  • History Log
  • Reorder Level
  • Maintenance
    • Category
    • Customer
    • Credit Applicants
    • Product
    • Supplier
  • Reports
    • Inventory Report
    • Sales Report
    • Account Receivables
    • Branch Income
    • Purchase Request

This system is also designed to make it user friendly. We’re using Twitter Bootstrap. You can modify the program as long as you give credit to the original author.

How to Run

  1. Download the source code and extract the zip file.
  2. Download or set up any local web server that runs PHP script.
  3. Open the web-server database and create a new database name it "inventory".
  4. Import the SQL file located in the backup folder of the source code.
  5. Copy and paste the source code to the location where your local web server accessing your local projects. Example for XAMPP('C:\xampp\htdocs')
  6. Open a web browser and browse the project. E.g [http://localhost/ahiraand for  admin [http://localhost/ahira/admin]

Account info

User: admin
pass: admin

Admin Account info

User: administrator
pass: admin

Installation Demo

Happy coding!

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 for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.


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.


Submitted byjtassa (not verified)on Sat, 07/15/2017 - 01:26

how to downloaded it
Submitted byverenalieson Thu, 01/17/2019 - 08:31

dear developper your code is not working i imported the DB and used the ID and PW in the user's table and still not working can you please advise on the same best regards
Submitted byblacshark (not verified)on Sun, 12/18/2022 - 17:59

can i ask for permission to use this for thesis purposes? will give credit after our final defense.

Add new comment