=== Gravity Forms Entries Inventory Management ===
Contributors: wpriders, mariusvetrici
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=N4MHT82R3LQZA
Tags: gravity-forms, inventory, inventory management, tickets, entry limits
Requires at least: 3.5
Tested up to: 4.4.2
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Entries inventory management for Gravity Forms.

== Description ==

The Gravity Forms Entries Inventory Management provides an easy way to accept a given number of bookings/sell X tickets on your website.

Mark the desired field with 'gfinventory' css class in the Field Appearence tab. Further to this the plugin will:

1. Sum up the values from the 'gfinventory' field from all the available Entries of this form
2. Will compare that total with the "Number of Entries" (total entries) option from Form Settings tab.
3. Will display any needed validation both at *form load time* as well as upon *form submit*.

Note!
Plugin works with "total entries" option for Number of Entries.
Plugin **not** tested with other Number of Entries limits like:

* per day  
* per week  
* per month  
* per year

= Compatibility =

This plugin is compatible with:
* Gravity Forms >= 1.9.12.10

== Installation ==

See Screenshots tab for a short visual tutorial.

1. Copy the `gravity-entry-inventory-management` folder into your `wp-content/plugins` folder
2. Activate the Gravity Forms Entries Inventory Management plugin via the plugins admin page
3. Create a new Gravity Form 
4. Add a new input field on the form
5. Go to the Field Appearence tab and add 'gfinventory' (without single quotes) to the Custom Css Class field. Save the form.
6. Go to Form Settings (NOT Global Gravity Form Settings) and 

* Check "Enable entry limit"  
* Set your limit for this form in "Number of Entries" field  
* Set yor message in "Entry Limit Reached Message" field  
* Save settings  

== Screenshots ==

1. Validate field upon form submission and make sure we don't book more entries than available screenshot-1.png. 
2. Display a friendly message upon form display if no place is available screenshot-2.png 
3. Configure the inventory field screenshot-3.png
4. Configure the entry limits screenshot-4.png

== Changelog ==

= 1.0.0 =
* First working version
