Thursday, July 5, 2018

Logout from System

This is the most simplest script but the most important script of all. When you login to a system, it is very important to logout from the system to prevent un-authorized access to the system. Logout is a very simple function that it does only destroy created sessions. Without sessions, other users...

Wednesday, July 4, 2018

Add a New Payment

To add a new payment (Down Payment or Installment) you need to first search the customer by NIC number. In the search result page (search.php) There is a link "Payment" for each sale of the customer. In the new payment page (new_payment.php), all the details (sales details, customer details, previous...

Edit Sales

We learned about how to create a new sales and view created sales. In this page edit_sales.php you can edit sales details and change sales status. You can not delete a sale from the sales database table, but you can cancel a sale by changing the status. Edit sale option available only in view sales...

View Sales

There are two pages to view customer sales. Using the search option and selecting a link from sales page. View result of these two options are not the same. In the search option (search.php page) only active sales on the customer are shown and from there only can add payment to a sale. But in the...

Sales

This is the main function of the system - selling products. Since this system is intended to handle only installment payments, this system doesn't maintain an inventory. Product inventory will be an useful add-on for the system and if you want to improve the system it is good to develop an inventory...