Point of Sale (POS) using PHP/MySQL

Submitted by: 
Language: 
Visitors have accessed this post 119756 times.

In this program you will know on how to create a complete online Point of Sale(POS) using PHP/MySQL.The system also help you on how to create an Online Point of Sale that cater both cash, check, and credit.

The system can generate different report such as:

Individual sales report
Inventory report
Daily/weekly/monthly/yearly sales report
Collectibles report
Supplier Report
Receipt
Customer Report

The system can also retrieve OR, generate individual customer ledger and etc. Happy coding and hope this code will help you.

Database name: inventory
Username:administrator
Password:administrator


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

when i run the cords (Undefined variable: name) this error generated in line 511 can u help me to fix this pls soon (

" size="70" style="border:0px;" readonly/>)

i have same error too

So are you have been searching the accdou8nting software so the industrial standard software we will suggest. the name of this accounting software is Point of Sale Software. This Point of Sale Software is available online to solve your accounting problem Software.

the base is not complete because it is reflected on page searchname.php and checking the code calls a table called members which did not see you could put the entire database if not too much trouble ....

hello sir,
I'm doing MCA degree. I going to do a project in "Hospital patient billing system in php/mysql" on my own. I'm not too good in php. so i need your guideline. Can you please send me some sample coding to do this project. Thank you sir...

hi
how to do sales return in pos

Hi,i've inserted the administrator word on both,but i couldnt enter the system.there is an error

" Failed to connect to server: Access denied for user 'root'@'localhost' (using password: NO)"
please help me

Check the file config.php and change the password which is empty for this case to your phpmyadmin password...I hope it will help.

this string " Failed to connect to server: Access denied for user 'root'@'localhost' (using password: NO)" in your comment is showing that udin't use the proper user and password

1)using your PHP My admin create new user named:administrator and password :administrator
2) create your db named " inventory"
3)Import the file with th name :inventory.sql
4) copy all files and folders which are in side the OnlinePOS folder , run the system and Enjoy
2)

Containg many errors, but giving a good start for creating POS

every time i run the program the error is this
Notice: Undefined variable: name in C:\wamp\www\aw\onlinePOS\OnlinePOS\auto.php on line 505 how to fix it sir? can u give me some technique or code on how to fix it?

after i login, the page occured "could not select database" ..
what is it means?

The selling php file is missing a JavaScript calling itself bleble
on a textbox called amots and an error on line 505 becaue of get id
but it is a good start to see a php pos.

on the whole it SHOULD NOT work because the page has to reload when
code of selling is put. With a little more working and js at product code i guess there is a way.

I cant believe argie, the owner does not see these problems and errors.
otherwise the only free sample code i can get on the internet

me again webuzy.
3 days straight trying to make this web pos to work and i have done it!!!

note:
1. The code has no js function called bleble and cause err at line 505 - trying to read a cookie. just remove the line and use your own code for authorising your many different pages.

2. You have to work with ajax so as to avoid reloading page.
unfortunately you have to learn what ajax is if you dont know.

3. do not follow the authors route on selling form doing too many things. have separate cash or POS sales and different ones for credit sales. More manageable.

Once again thanks to owner of the code. gave me the bulk of ideas to work with. If you need specific help,on commercial basis, email me webuzy (at) yahoo (dot) com.

Bye all

i have problem with this system....

1. how to create code for replacing js function called bleble and cause err at line 505?

2. can u give URL for learn ajax...?

3. if i separate cash and POS sales...what should i create name file? and how to select customer name if i separate the file?

hello why is it i cant change the die function to an alert box? any idea?????

Some one help i ve failed to correct this error e :
( ! ) Notice: Undefined variable: name in C:\wamp\www\onlinePOS\OnlinePOS\auto.php on line 505
Call Stack
# Time Memory Function Location
1 0.0170 433192 {main}( ) ..\auto.php:0
" size="70" style="border:0px;" readonly/> ( ! ) Notice: Undefined variable: id in C:\wamp\www\onlinePOS\OnlinePOS\auto.php on line 506 Call Stack #TimeMemoryFunctionLocation 10.0170433192{main}( )..\auto.php:0 " readonly/> ( ! ) Notice: Undefined variable: prcoede in C:\wamp\www\onlinePOS\OnlinePOS\auto.php on line 507 Call Stack #TimeMemoryFunctionLocation 10.0170433192{main}( )..\auto.php:0 " readonly/>
Date :
Product Price :
( ! ) Notice: Undefined variable: price in C:\wamp\www\onlinePOS\OnlinePOS\auto.php on line 517 Call Stack #TimeMemoryFunctionLocation 10.0170433192{main}( )..\auto.php:0 " style="border:0px;"/>
Quantity :
Available Qty:
( ! ) Notice: Undefined variable: qty_left in C:\wamp\www\onlinePOS\OnlinePOS\auto.php on line 524 Call Stack #TimeMemoryFunctionLocation 10.0170433192{main}( )..\auto.php:0 " size="10" style="border:0px;" readonly="readonly"/>
Reciept Code :

Newbie here. Unable to import inventory.sql.

What should I do in this case?

Thanks in advance!

This is the report MySQL gives me:

  1. Error
  2.  
  3. SQL query:
  4.  
  5. --
  6. -- Database: `inventory`
  7. --
  8. -- --------------------------------------------------------
  9. --
  10. -- Table structure for table `code`
  11. --
  12. CREATE TABLE `code` (
  13. `id` int( 11 ) NOT NULL AUTO_INCREMENT ,
  14. `code` int( 11 ) NOT NULL ,
  15. PRIMARY KEY ( `id` )
  16. ) ENGINE = InnoDB DEFAULT CHARSET = latin1 AUTO_INCREMENT =2;
  17.  
  18. MySQL said: Documentation
  19. #1046 - No database selected

you should choose the database first, or u can make a new one then just import the file

Failed to connect to server: Access denied for user 'root'@'localhost' (using password: NO)

i have installe script.it comes up with a login screen .. i have create database in cpanel but no tables are table from where can i get sample datatabase or structure of a database

1 week is all you need if you have programming skill in something else like vb or basic php.
Contact me for quotation. [email protected]

too many errors........ i can't figure all it out

when i enter the product code searchSuggest2.php is missing error appear. I look into the files there are several searchsuggest files but no searchSuggest2.php... may I ask for a copy...

Many thanks and more power...

Doesn't start properly, after loging in as administrator with same password the said, cant find database. why is that?:

maybe you did not create a database connection to the login and the rest.....

hey? the system can perform a sale of mote than what is in the database.

after imputing
username: administrator
Password: administrator

here is the error bellow

Notice: Use of undefined constant inventory - assumed 'inventory' in C:\xampp\htdocs\onlinepos\mainloginexec.php on line 18

Warning: mysqli_select_db() expects parameter 1 to be mysqli, string given in C:\xampp\htdocs\onlinepos\mainloginexec.php on line 18
Unable to select database

kindly help

It's creating too many error for our POS Software

How to solve these errors from POS Software?

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • You may insert videos with [video:URL]
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <th> <img> <h1> <h2> <h3> <iframe> [video]
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>, <asp>, <c>, <cpp>, <csharp>, <css>, <html4strict>, <java>, <javascript>, <mysql>, <php>, <python>, <sql>, <vb>, <vbnet>. The supported tag styles are: <foo>, [foo].
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.