321 Commits

Author SHA1 Message Date
Erik Thuning
2348b07e7c Changed object initialization to be lazier 2020-01-20 11:28:06 +01:00
Erik Thuning
a3656604c0 Implemented attachments for products 2019-11-19 15:06:22 +01:00
Erik Thuning
3cc2b91ed4 Changed the layout to use two columns
Preparing to implement attachments
2019-10-28 16:55:08 +01:00
Erik Thuning
ae1e215829 Removed a forgotten debug statement 2019-10-24 15:03:18 +02:00
Erik Thuning
ddaa1c6663 Broke the Cron class into its own include file, and made some addresses configurable.
Introduced a configuration variable to use for future implementation of discard notifications.
2019-10-24 09:57:47 +02:00
Erik Thuning
d4f3ff7704 Added some username cleanup 2019-09-13 11:32:18 +02:00
root
d271ed8115 Fixed a bug where the brand of a product could not be updated 2019-08-16 15:08:25 +02:00
Erik Thuning
5f7ee5ff45 Fixed several bugs:
- product creation/update was broken since adding the brand field
 - template suggestions and loading was broken since changing datalist names
 - discard and service buttons were not hidden when creating new products
2019-08-16 14:06:41 +02:00
Erik Thuning
282d19ee2c Fixed minor display bugs 2019-08-16 09:38:08 +02:00
Erik Thuning
07b372c426 Fixed a placeholder not being removed on the new product page 2019-08-16 09:18:09 +02:00
Erik Thuning
45eb32c70b Implemented suggestions for product field contents
based on existing contents of the same field on other products.
Also changed datalist IDs to be more descriptive
2019-08-15 11:34:59 +02:00
Erik Thuning
bb8666a2d7 Minor bug fix 2019-07-24 15:49:18 +02:00
Erik Thuning
76eb90e643 Fixed a bug that prevented users from being listed 2019-07-24 15:02:57 +02:00
Erik Thuning
f637d42383 Refactored event retrieval to use the new type column 2019-07-24 14:24:41 +02:00
Erik Thuning
ef756e36b4 Several changes:
- The inventory page now shows status of seen products as of when they were registered,
   not as of now.
 - Renamed a placeholder in fragments.html to be more intuitive.
 - Added a type field to the event table in the database, so that complete events can
   be constructed without complex logic.
 - Refactored to support the above changes
2019-07-24 14:09:31 +02:00
Erik Thuning
1b0f27b2e9 Refactoring to support the new database structure and event model 2019-07-23 15:32:33 +02:00
Erik Thuning
d61ba55af4 Added new utility functions format_date and default_loan_end 2019-07-23 15:29:20 +02:00
Erik Thuning
adc8d36bb0 Introducing events - loans are now events, and there is also a service event type 2019-07-23 15:26:27 +02:00
Erik Thuning
e67634b62b Removed the duration method and replaced with explicit methods to get start and end 2019-07-23 15:23:26 +02:00
Erik Thuning
a412256598 Merge branch 'add_manufacturer' 2019-07-16 15:00:53 +02:00
Erik Thuning
59395ad311 Added support for searching for brands and fixed a bug where the query was presented in translated form to the user 2019-07-16 14:48:27 +02:00
Erik Thuning
720551af8d Changed products to always have a manufacturer field 2019-07-16 14:47:44 +02:00
Erik Thuning
8654206c72 Added the ability to search for presence of fields 2019-07-16 14:45:58 +02:00
Erik Thuning
0923435462 Added a function to temporariliy suspend availability of products
for service. Also did some refactoring in related areas.
2019-06-12 20:39:55 +02:00
Erik Thuning
402980a304 Added serial in product tables 2019-06-12 11:42:16 +02:00
Erik Thuning
8485264714 Searches now automatically match parts of field values, and the search field has autofocus 2019-06-12 11:09:03 +02:00
Erik Thuning
97d483524a Fixed bugs caused by the previous commit 2019-06-11 17:19:00 +02:00
Erik Thuning
692c2e0aeb Broke all classes into separate files and activated class autoloading.
All free functions are now in functions.php
2019-06-11 17:05:48 +02:00
Erik Thuning
fe4e92b6e9 Added some help text for the search page and tweaked search functionality a bit 2019-06-11 15:47:40 +02:00
Erik Thuning
e089291612 Fixed the missing tags bug for templates 2019-06-11 15:07:25 +02:00
Erik Thuning
4acd884261 Added support for creating labels for print using QR codes.
Also fixed a bug when adding a product without tags
and a minor usability fix on the checkout page
2019-06-11 14:59:49 +02:00
Erik Thuning
eb1987d83a Completed implementation of search v2. It is not posible to find discarded products via search at this time. 2019-06-04 17:29:55 +02:00
Erik Thuning
1349cd608c Added handling of invalid inventory IDs and added error messages for all invalid IDs 2019-04-15 10:27:58 +02:00
Erik Thuning
2aee184390 Several changes:
* Added a user notes field to the checkout page
 * Added user suggestions to the checkout page
 * Refactored suggestion generation
 * Proper pluralization on reminder emails
 * Improved the feedback message when returning a product
2019-04-11 17:03:59 +02:00
Erik Thuning
f26e281b9c Inproved handling of missing user IDs 2019-04-11 11:02:52 +02:00
Erik Thuning
3074136cf7 Improved handling of unknown product IDs 2019-04-11 10:29:20 +02:00
Erik Thuning
3c2f5fa6f8 Several changes:
* Added saving and deletion of templates via ajax
 * Removed the unused function 'temp'
 * Added rendering of the template handler on the new product page
2019-04-09 18:20:33 +02:00
Erik Thuning
b0785435f8 Added a function to remove templates and fixed some capitalization issues 2019-04-09 18:12:57 +02:00
Erik Thuning
2d729f8cc6 Added template handling when rendering the new product page 2019-04-05 15:33:35 +02:00
Erik Thuning
ebf6c477b6 Added a Template class and introduced linebreaks into very long SQL lines 2019-04-05 15:22:23 +02:00
Erik Thuning
8aa562de83 Added support for automatically emailing users with overdue loans once per day via cron.
Also fixed a bug where an empty tag was added to products without any tags
Fixed a bug where an empty tag was begin added
2019-02-28 15:04:20 +01:00
Erik Thuning
ce40d5ddfd Fixed a bug where input validation wasn't being done when adding new products 2019-02-27 17:15:38 +01:00
Erik Thuning
02c4af72f9 Added a sanity check on tags 2018-09-11 17:03:41 +02:00
Erik Thuning
0df7a8d06c Fixed a search bug 2018-09-11 17:03:17 +02:00
Erik Thuning
a81f445bf9 Completed and refactored search. Also some minor graphical tweaks 2018-09-11 16:04:12 +02:00
Erik Thuning
71b853c973 Implemented advanced search and removed discarded products from the default listing, moving them into the history page 2018-09-07 17:17:50 +02:00
Erik Thuning
eb3121f0f6 Refactored the inventory screen code 2018-09-07 11:46:09 +02:00
Erik Thuning
8c2de26af1 Implemented discarding of products 2018-09-06 17:28:47 +02:00
Erik Thuning
8eadacb9e2 Added autocomplete on new tags and new fields 2018-09-06 16:18:37 +02:00
Erik Thuning
c049133d83 Almost full functionality implemented.
Missing:
 * discarding products
 * list discarded products
 * autocompletion of tag and field names
 * datepicker
 * expand search grammar
2018-09-05 17:14:18 +02:00