View | Annotate | Download (2.8 KB)
Add the custom fields and their default values to the addPurchase page
Update copyright date to 2010
Use one database object
Use library business functions
Migrate the addPurchase page to the new db class
Initial work on categories. Also added general function to format <options> from any table.
Fixed permissions back to the way they were before I messed them up :)
Proper escaping of characters when inserted into database
This was only happening for the '&' character (upon inserting a new business), because the values were being passed along via $_GET over AJAX. I changed it to use $_POST instead, using the jQuery ajax framework (since I don't know how to use the prototype one).
Remove a testing line
Move the html generation into html and thus removing the JS help datastructure
Updated the copyright to be the current year.
Removed old commented code that isn't being used
Removed the 'Select a Location' field from the location drop-down on the addPurchase page. The first item in the drop down is the most commonly used location.
Locations drop down now dynamically fills itself "onClick".
Change database and custom template class includes. HUGE change. If anything breaks, blame Cameron.
Move auth.php into lib directory, renamed to auth.lib.php. Update require statements.
Fix the purchase page. Allows the number of items to be dynamically changed.
Clean up formatting.
Remove config.php require_once from remaining files
Removed config.php include line
A much better approach to the purchases. A lot more checking needs to be done, but it's functioning how it was intended.
Refactor smarty setup, inc/setup.php contains a new Smarty_Inv definition to set directory locations
Established a naming convention in all files. Lowercase first word, uppercase afterwards, e.g. viewInventory, insertLoanRecord.
Changed 'Foobar' to 'RPInventory' in license text, done with git because svn is dumb.
Added GPL license to all code files.
Added half assed purchase items. Modified DB structure for purchase items table.
Functionality to add a purchase for an item. Only can add one item per purchase, so that needs to be redone.