2 Replies Latest reply: Jul 15, 2014 4:25 PM by bregent RSS

    PHP Rental System

    Max Resnikoff Community Member

      Hi,

       

      I am creating a database where people can rent equipment.

       

      I have a page with all the inventory listed, (server behavior: repeat).

      Next to the item, I have a delete button, and above the delete button, i would like a button above that to say 'rent'.

       

      what can I do in terms of making a rental system? (I cant find anything regarding an easy approach to it on the internet!)

      (if this helps: Im inclined to use a calendar because it is a good visual representation as to when the equipment has been booked.)

        • 1. Re: PHP Rental System
          Rob Hecker2 CommunityMVP

          Just off the top of my head, here are some considerations:

           

          The database must include tables for equipment, customers, equipment status and rent/invoice (there are other possible organizations). You probably also want a separate table for pricing, so price changes don't have to be  applied to each piece of equipment individually.

           

          When the renter returns a piece of equipment, the equipment may need repairs. You may need to have a table that tracks the state of each piece of equipment (rented, damaged, in inspections, ready, etc.)

           

          When equipment is rented, you may need to take into account days when the equipment cannot be returned, such as Sundays and holidays. So pricing should take such details into consideration. PHP has great date management features, but they must be learned.

           

          Even if your PHP application is not used to process payment, you probably want to include payment info in the rental record. And if the equipment fails to perform for the customer, there should be a refund/credit process, with proper accounting tracking.

           

          It is likely that you will need to generate reports for various types -- financial, inventory, non-returned items, etc.

           

          The features you would need for renting DVDs would be significantly different from those you would need for renting agricultural equipment. You may find applications for sale that will do what you need. It's unlikely that you would  find a tutorial for creating it yourself because there are so many things to consider, and it is not a novice project.

          • 2. Re: PHP Rental System
            bregent CommunityMVP

            >what can I do in terms of making a rental system? (I cant find anything regarding an easy approach to it on the internet!)

             

            Are you asking for a list of features that should be included? Or business logic to implement them?  Or the actual code? I doubt you'll find anything on the web related to creating code for a rental system.