10 Commits

Author SHA1 Message Date
Erik Thuning
fa46874ae3 Mail notifications get pushed forward in time when a new loan is created if there is a pending notification.
This way the user can add multiple loans over time without the notification getting sent prematurely.
2023-01-11 10:43:57 +01:00
Erik Thuning
1b8c2e1e18 Corrected a database field name 2022-07-27 13:52:54 +02:00
Erik Thuning
4e9e5b93af Added a function to get the latest loan extension.
Broke receipt queueing into a function.
Changed $this->id to $this->get_id() for the sake of consistency.
2022-07-27 11:06:49 +02:00
Erik Thuning
311402e1b8 Initial implementation of loan receipts 2022-07-19 17:00:08 +02:00
Erik Thuning
a16e5f2479 Whitespace cleanup 2022-07-19 15:49:28 +02:00
Erik Thuning
0ee0f81024 Changed cron behaviour to warn users 3 days before their loans end 2022-04-29 15:58:38 +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
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
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
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