snipe-it/app/Models
snipe 8a6713d5c0
WIP - Improved requested assets (#5289)
* WIP - beginning of improved requested assets

- Use Ajax tables for faster loading
- Use new notifications for requesting an asset

TODO:
- Use ajax tables for requestable asset models
- Use new notifications for canceling an asset request
- Expire requests once the asset has been checked out to the requesting user

* Only show asset name in email if it has one

* Refactor requested method to only include non-canceled requests

* Refactored requestable assets to log request and cancelation

* Added softdeletes on checkout requests

* Differentiate between canceling and deleting requests

* Added asset request cancelation notification

* Added timestamps and corrected unique key on requests table

* Improved requests view

* Re-use blade for cancel/request email

* Refactored BS table formatter for requested assets

* Location name min reduced to 2

* Added PAT test as maintenance option

This needs to be refactored into database-driven options with a UI

* Better slack message

* Added getImageUrl method for assets

* Include qty in request notifications

TODO:
- Try to pull requested info from original request for cancelation, otherwise it will default to 1

* Removed old asset request/cancel emails

* Added user profile asset request routes

* Added profile controller requested assets method

* Added blade link to requested assets for profile view

* Sort user history desc

* Added requested assets blade

* Added canceled at to checkoutRequest method

* Include qty in request

* Fixed comment, removed allowed_columns

* Removed Queable methods, since we don’t use a queue

* Fixed return type in method doc

* Fixed version number

* Changed id to user_id for clarity
2018-04-04 17:33:02 -07:00
..
Recipients Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
Accessory.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
Actionlog.php Added - changelog searchable in history tab 2017-12-12 05:10:13 -08:00
Asset.php Add location_id to fillable (#5286) 2018-03-29 05:11:07 -07:00
AssetMaintenance.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
AssetModel.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
Category.php Api tests2 (#5098) 2018-02-25 12:10:02 -08:00
CheckoutRequest.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
Company.php Fixes #4639 2017-12-15 18:54:38 -08:00
CompanyableChildScope.php Updated docblocks 2016-04-07 13:21:09 -07:00
CompanyableChildTrait.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CompanyableScope.php Updated docblocks 2016-04-07 13:21:09 -07:00
CompanyableTrait.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Component.php Fixed component checkout bug 2018-03-28 18:53:18 -07:00
Consumable.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
ConsumableAssignment.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
CustomField.php Fixes #4829 - add fields api (#4840) 2018-01-17 05:31:57 -08:00
CustomFieldset.php More specific required check 2017-09-29 03:44:23 -07:00
Department.php Make department columns sortable 2018-02-21 05:04:20 -08:00
Depreciable.php Partialize forms (#2884) 2016-11-16 16:56:57 -08:00
Depreciation.php Fixed Illuminate path 2017-02-22 22:20:57 -08:00
Group.php Fixes group search 2017-10-10 22:59:32 -07:00
ICompanyableChild.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
Import.php Importer mapping - v1 (#3677) 2017-06-21 16:37:37 -07:00
Ldap.php Tidying some of the LDAP UDN logic 2017-10-16 15:29:06 -07:00
License.php Api tests2 (#5098) 2018-02-25 12:10:02 -08:00
LicenseSeat.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
Location.php Fixed #5272 - make city min length 2 instead of 3 2018-03-29 04:36:18 -07:00
Loggable.php Fixed checkout to checkin in loggable checkin trait 2018-03-28 19:01:10 -07:00
Manufacturer.php Fixed manufacturer restore 2018-03-03 19:14:27 -08:00
Requestable.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00
Setting.php Notification improvements (#5254) 2018-03-25 13:46:57 -07:00
SnipeModel.php More importer fixes (#4516) 2017-11-24 10:42:11 -08:00
Statuslabel.php Api tests (#5096) 2018-02-24 19:01:34 -08:00
Supplier.php Disable broken tests (#5073) 2018-02-22 21:46:58 -08:00
Throttle.php Version 3 - hold onto your butts 2016-03-25 01:18:05 -07:00
User.php WIP - Improved requested assets (#5289) 2018-04-04 17:33:02 -07:00