7b827f57b6
Acceptance: replace calls in controllers and listener with action
2026-06-25 16:23:07 -07:00
2033f25386
FMCS/Floater: Refactor logic into the companyable trait
2026-06-13 12:36:15 +01:00
a27c551f64
Style changes requested
2026-06-12 16:10:17 +01:00
6a0ec69451
FMCS/Validation: Fixed #19166 - translate error messages on FMCS fail
2026-06-10 12:44:46 +01:00
0f6367bb17
FMCS: Extended checks to accessories, bulk controllers, etc
2026-06-10 11:47:54 +01:00
e2ba35ee80
Small FMCS fixes
2026-06-09 12:33:48 +01:00
cbc6dc94a5
Licenses/Accessory/Consumables: Fixed FD-55732 - confirm FMCS on backend
2026-06-08 17:08:18 +01:00
f74e7510c5
Licenses Checkout: Fixed FD-55733 - License Bulk Checkout Uses Incorrect Permission Check
2026-06-08 17:03:16 +01:00
c25d56ea85
Refactored licenses controller to use a pessimistic lock inside a transaction
2026-05-26 14:24:02 +01:00
061b913413
Better naming for session variable
2026-04-14 20:54:42 +01:00
91e41049bd
Skip the initial checkout email to the recipient if sign_in_place was checked
2026-04-14 19:49:05 +01:00
18f67bcce5
Store the sign in place in the session so it’s remembered
2026-04-14 12:20:51 +01:00
264347e323
Added redirects
2026-04-14 12:16:46 +01:00
9bc92f57c8
Apply pint to non-API controllers
2026-03-13 16:45:30 +00:00
0f215bbcf8
fix: replace deprecated Symfony Request::get() usage
2025-12-17 18:44:04 -08:00
7062962cc8
Show warnings on the dates if expired or terminated
2025-09-15 13:43:08 +01:00
319cb1bd1e
Removed logging
2025-09-15 13:23:44 +01:00
58cda5ae6d
Added scopes
2025-09-15 13:22:25 +01:00
3094e007ee
Set session to remember checkout type
...
Signed-off-by: snipe <snipe@snipe.net >
2025-09-01 13:28:07 +01:00
55ebb4671f
update check in and check out controllers
2025-07-01 12:44:26 -07:00
22c58678c4
License checkout controller with route model binding
...
Signed-off-by: snipe <snipe@snipe.net >
2025-02-19 08:38:55 +00:00
1582d81e5b
Change user_id to created_by
...
Signed-off-by: snipe <snipe@snipe.net >
2024-09-17 22:16:41 +01:00
ff100c0b9f
Added more tests
...
Signed-off-by: snipe <snipe@snipe.net >
2024-07-26 14:58:10 +01:00
5d7f1f77a3
Added redirect to checkin/checkout controllers
...
Signed-off-by: snipe <snipe@snipe.net >
2024-07-26 12:48:07 +01:00
70d95877d8
Translations for license checkout errors
...
Signed-off-by: snipe <snipe@snipe.net >
2024-07-16 21:02:58 +01:00
ae9085b11f
Modernize use statements, switch to auth()
...
Signed-off-by: snipe <snipe@snipe.net >
2024-07-04 20:49:22 +01:00
fb233c0aa4
Cleaned up facade names and references
...
Signed-off-by: snipe <snipe@snipe.net >
2024-05-29 12:38:15 +01:00
81b2273c37
Refactored checkout screen to redirect if invalid category
...
Signed-off-by: snipe <snipe@snipe.net >
2023-11-23 16:18:28 +00:00
a08e0bd547
Ensure notes are saved to the action log when licenses are checked in and out
2023-11-06 12:20:13 -08:00
6fa0d42bc2
Fixed bug where license checkout/checkin notes were not being saved
...
Signed-off-by: snipe <snipe@snipe.net >
2023-09-28 15:40:18 +01:00
7937542dcb
Redirect if the license can’t be found
...
Signed-off-by: snipe <snipe@snipe.net >
2023-06-29 21:15:50 +01:00
dc6eb6f104
Throw a warning if there were no users affected
...
Signed-off-by: snipe <snipe@snipe.net >
2023-04-18 02:07:17 -07:00
f21d9c27e6
Use new translations for logs
...
Signed-off-by: snipe <snipe@snipe.net >
2023-04-18 01:07:26 -07:00
a83991041a
Better placement for errors
...
Signed-off-by: snipe <snipe@snipe.net >
2023-04-16 16:08:06 -07:00
844ad83431
Added method to bulk checkout license seats
...
Signed-off-by: snipe <snipe@snipe.net >
2023-04-16 15:26:59 -07:00
c0f83a7927
Delete not necessary conditional
2022-09-20 19:02:01 -05:00
5a1062f0f4
Delete debugging symbols (just kidding, it's just a dd() function)
2022-09-20 18:58:31 -05:00
c32676596c
Redirect correctly if not enough license seats exists to be checkout
2022-09-20 18:55:53 -05:00
934afa036f
Adopt Laravel coding style
...
Shift automatically applies the Laravel coding style - which uses the PSR-2 coding style as a base with some minor additions.
You may customize the adopted coding style by adding your own [PHP CS Fixer][1] `.php_cs` config file to your project root. Feel free to use [Shift's Laravel ruleset][2] to help you get started.
[1]: https://github.com/FriendsOfPHP/PHP-CS-Fixer
[2]: https://gist.github.com/laravel-shift/cab527923ed2a109dda047b97d53c200
2021-06-10 20:15:52 +00:00
e3e0d57f56
Minor code cleanup bits and bobs ( #6805 )
...
* Add IDE Helper files
* Cleanup imports
- Alphabetises imports
- Removes unused imports
* Add Platform requirements
* Move filling asset into block where asset exists
* Remove duplicate array keys
2019-03-13 20:12:03 -07:00
007e8fbdf9
simplified checkout event handling per @uberbrady’s suggestion
...
This generalizes the checkout events into the CheckoutableCheckedOut and CheckoutableCheckedIn events.
2018-09-10 16:40:26 +02:00
6b05106dcb
Moves license checkout stuff to the license seat
...
Since we are really checking out a license seat instead of the whole license, we operate the checkin/checkout on the license seat instance.
2018-08-06 14:47:26 +02:00
e0423418d2
Moves logging checkin/checkout to separate listener
2018-08-06 14:46:10 +02:00
e24f292a1a
Updates checkout events to not depend on log
2018-08-06 14:46:10 +02:00
248fcfa869
Move findLicenseSeatToCheckout back to controller. ( #5970 )
...
* Move findLicenseSeatToCheckout back to controller.
After discussion, move findLicenseSeatToCheckout method back to
controller from form request. Also cleanup one tiny bit more with null
coalesce operator (Yay php 7).
* Revert Earlier change.
$target only exists in the checkoutTo* methods. Need to log the
checkout individually in each of those.
2018-07-27 12:03:04 -07:00
a3811f632d
Licence != License ( #5993 )
2018-07-27 12:01:25 -07:00
64d649be7f
Monster: Cleanup/Refactor http controllers. ( #5916 )
...
* Extract a handlesimages trait to centralize logic for parsing/storing images on upload in create/edit methods.
* Use same image upload/layout in accessories as consum+components.
* Monster: Cleanup/Refactor http controllers.
This cleans up docblocks, pulls most non-crudy actions into their own
controllers, and does general cleanup/logic refactoring. There /should/
be no functional changes, but we all know how should works..
Extract checkin/checkout functions to a separate controller for accessories.
Move controllers to subdirectory.
Cleanup AssetModelsController
Extract component checkin/checkout
Assorted cleanups/doc/formatting in controllers.
Refactor LicenseController.
Refactor UsersController
Update viewassetscontroller.
* Codacy cleanups
* More codacy cleanups. Extract a LicenseCheckout Form request as well.
* A bit more refactor/cleaning of the license checkout method.
* Review Related Cleanups
* Fix most of the item_not_found translations. In many cases, the
string being generated did not even use the id parameter. Where it
does, pass it as id instead of as a different value.
* Remove some old $data arrays from when we manually sent emails from
the controllers. This has been superseeded by the notification system
(yay!)
* Bugfix: Only log the checkin of an accessory if the checkin completes sucessfully.
2018-07-24 19:35:26 -07:00