Table of Contents
This web app is designed to streamline the management of rental items. It enables efficient handling of both items and customers. You can manage multiple orders for each customer by specifying the rental end date, which provides you with real-time updates on the order status.
Main functionalities:
- CRUD Operations
- Interactivity with AJAX
- Automatic form validation
- Search Query
To get a local copy up and running follow be ture to have the following steps checked.
- Install Homebrew
- Install PHP
brew install php
- Configure PHP
php --ini
- Clone the repo
git clone https://github.com/ccrisc/rent_items_management.git
- Enter your DB credentials in
config.php
define('DB_NAME', '*****'); define('DB_USER', '*****'); define('DB_PASSWORD', '*****'); define('DB_HOST', '*****:3306');;
- You can create schema and tables by executing the SQL from the
demo_dump
folder fo getting started - Run your local PHP server (if you are using PHPStorm you can set up your server following these instructions)
php -S localhost:8000
- Visit http://localhost:8000
You can add a new customer by clicking the orange button on the main page, the form allows to insert first name and last name
In a single order you can add multiple items and different quantities for each. At the bottom you have to specify the customer the return date and the order number.
In the order management table you have an overview of all your orders. In the table you see the column state that indicates if the order has been closed (green) or if it still active (orange). At the same time the column return date signal if the return date is past (red) or not yet arrived.
By clicking the DETAIL button you get the order overview. If the order is still active you can proceed to close it, if the customer return all the items or to close it partially.
When you proceed to close an order partially you will be asked to specify for each article the quantity that the user has returned. The difference will be calculated in the backend and added to the not returned items for that specific user.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you think you found a bug in this repo, you can submit an issue.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
For more details see See CONTRIBUTING.md
Distributed under the GNU GENERAL PUBLIC License. See LICENSE.txt
for more information.