343 Commits

Author SHA1 Message Date
Erik Thuning
d4cf2498fe FIX: bad method name 2024-11-14 15:49:49 +01:00
Erik Thuning
62b8c853f5 Products now get sorted in alphabetical name order in most (all?) views 2024-11-14 15:44:04 +01:00
Erik Thuning
9db001a635 Fixed a typo 2024-03-11 10:03:53 +01:00
Erik Thuning
8cf081a9d1 Underscores in info field names are now changed to spaces when rendered.
Not an ideal solution since underscores now can't be used in field names,
but since it's PHP's POST handling getting in the way it'll have to do.
2024-03-08 16:40:55 +01:00
Erik Thuning
45f80a0855 Moved entitlement handling into the application.
Any user who can log in via SSO but doesn't have one of the required
entitlements will only ever see a listing of their own loans.
2024-02-29 15:44:19 +01:00
Erik Thuning
22608f1aa7 Added a page intended for users to view their own loans.
Also added serial numbers to loan listings for users.
2024-02-29 14:48:37 +01:00
Erik Thuning
c51bd1a60a Renamed history_table and related fragments to loan_table 2024-02-28 11:32:53 +01:00
Erik Thuning
ff079abb9c Found more strings to translate 2024-02-28 11:08:04 +01:00
Erik Thuning
d770138159 Fixed a typo 2024-02-28 10:54:46 +01:00
Erik Thuning
bf696127a9 Reworked email lookup logic on CheckoutPage,
so a user will be automatically created if their email address exists in sukat but doesn't have a corresponding boka user yet.
2024-02-27 15:49:52 +01:00
Erik Thuning
b2ff35a6d9 Found even more untranslated strings! 2024-02-27 15:19:30 +01:00
Erik Thuning
c6a7af0639 Cleaned up trailing whitespace 2024-02-27 13:59:59 +01:00
Erik Thuning
deb47f94d3 Eliminated a warning due to attempting to index into null 2024-02-27 13:49:42 +01:00
Erik Thuning
362ee182cb Found some untranslated strings 2024-02-27 13:35:35 +01:00
Erik Thuning
212c34d779 Discarded products are now displayed in a read-only format.
Also added a fragment for a public view of a product
2024-02-26 17:22:26 +01:00
Erik Thuning
a91923ad18 Renamed product_detail fragments to product_match
in order to disambiguate with actual detail views
2024-02-26 16:10:59 +01:00
Erik Thuning
07128568ca Renamed the fragment product_form to product_details
in preparation for readonly public views
2024-02-26 15:14:41 +01:00
Erik Thuning
437ec951bd Past inventories used to list all current products,
not just the ones that existed at the time of inventory. Fixed.
2024-02-26 13:10:50 +01:00
Erik Thuning
746ad28545 Implemented internationalization.
Let's see how many strings have been missed.
2024-02-26 13:10:13 +01:00
Erik Thuning
5c199783c2 Added error handling for missing attributes in ldap lookups 2024-02-26 12:39:11 +01:00
Erik Thuning
60982069f6 Apparently final private is pointless, who knew 2024-02-21 16:31:51 +01:00
Erik Thuning
048cfb3ee2 match is a keyword in php8, so renamed the match() function accordingly 2024-02-21 11:37:35 +01:00
Erik Thuning
7cb0b1ea57 Updated the Cron.php email logic to use configurable fragments instead of hardcoded text 2024-02-14 10:48:01 +01:00
Erik Thuning
0ae6b11c21 Indentation fix 2024-02-09 16:18:23 +01:00
Erik Thuning
af39340b4b Updated the scrapping emails to include a lot more detail. 2024-02-09 16:17:59 +01:00
Erik Thuning
2f6cc432b1 Missed using the configured subject prefix in a spot 2024-02-08 16:36:35 +01:00
Erik Thuning
4f8bc9486d Fixed the inventory registry field not trimming whitespace 2024-02-08 15:38:54 +01:00
Erik Thuning
1f33f73938 Implemented notification emails when discarding products. 2024-02-08 15:34:04 +01:00
Erik Thuning
019725dade Missed replacing a placeholder in the product_form fragment 2024-02-08 13:39:09 +01:00
root
d3e6ee7ab2 Fixed too many fields showing up when creating a new product 2023-03-08 10:05:44 +01:00
Erik Thuning
a7d961c4d3 If a product was checked out and immediately returned, an empty email receipt was being sent. Fixed. 2023-01-13 16:14:41 +01:00
Erik Thuning
b10bf1eed8 Added ability to check out a product from the product page directly 2023-01-11 11:11:42 +01:00
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
9307604aa0 Implemented receipts for loan extensions 2022-07-27 13:53:18 +02:00
Erik Thuning
1b8c2e1e18 Corrected a database field name 2022-07-27 13:52:54 +02:00
Erik Thuning
ae8b73cb88 Trim whitespace from serials when checking out and returning products 2022-07-27 13:15:06 +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
b3434dbb6a Changed loan extension form to have a saner default end time. 2022-07-27 10:52:52 +02:00
Erik Thuning
22d760a0af Whitespace cleanup 2022-07-27 10:48:53 +02:00
Erik Thuning
cd627f811d Made it work 2022-07-20 10:41:35 +02:00
Erik Thuning
311402e1b8 Initial implementation of loan receipts 2022-07-19 17:00:08 +02:00
Erik Thuning
04af074849 Whitespace cleanup 2022-07-19 16:57:42 +02:00
Erik Thuning
a16e5f2479 Whitespace cleanup 2022-07-19 15:49:28 +02:00
Erik Thuning
c1ba468807 Whitespace cleanup 2022-07-19 15:27:31 +02:00
Erik Thuning
79d9f45c38 Refactored the reminder generaion 2022-05-16 13:49:22 +02:00
Erik Thuning
15f4597637 Fixed formatting bugs in the outgoing emails 2022-05-02 15:21:56 +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
3fae0ce1ff Search overhaul possibly finished? 2022-03-03 11:37:35 +01:00
Erik Thuning
0f66c8212f User results are printed properly now 2022-03-02 10:18:54 +01:00
Erik Thuning
8502fbf0a1 Initial implementation of search result detail output 2022-03-01 16:33:00 +01:00