7ec60bc6f2
Same as #18808 but renamed assetstatus to status
2026-04-02 11:26:23 +01:00
80b7ebd508
Moved adminuser method to the SnipeModel
2026-03-27 19:20:54 +00:00
bec443ce97
Tweaked checkin/checkout button statuses
2026-03-26 16:27:04 +00:00
8417007eb8
Fixed #18725 - scope by assetsForShow()
2026-03-26 16:26:33 +00:00
bc7473d863
feat: use Storage::disk('public')->url() instead of hardcoded upload URLs
...
Several presenters, models, transformers, and Blade views were building
upload URLs by concatenating config('app.url') with hardcoded '/uploads/'
paths. This only works with local storage and breaks when using S3 or
any non-local public disk. Replaced with Storage::disk('public')->url()
which respects the configured filesystem driver.
Made-with: Cursor
2026-03-19 13:52:36 +01:00
9623fa4d87
Use pint on models directory
2026-03-13 15:55:28 +00:00
af1c55cd7e
Small code re-org for clarity
2026-03-06 21:55:46 +00:00
27ece84d52
Adds withTrashed() to adminuser and updates presenter to show strikethrough
2026-02-23 10:49:44 +00:00
5e9e0b70db
Fixes #18377 - make min value for names consistent
2026-01-05 12:51:49 +00:00
590f77bdb4
Updated controllers and presenters
2025-11-14 17:58:27 +00:00
9e68497b63
Moved Traits into directory and modify the users to point to them
2025-10-21 16:45:58 +01:00
2eb727bd0c
Added tests
...
Signed-off-by: snipe <snipe@snipe.net >
2025-09-09 13:51:56 +01:00
57af507170
Added deleted button to locations, check for additional relations
...
Signed-off-by: snipe <snipe@snipe.net >
2025-09-09 12:20:34 +01:00
7b5d90dd81
Moved model traits into proper directory
...
Signed-off-by: snipe <snipe@snipe.net >
2025-08-28 18:23:26 +01:00
95f867b267
Code formatting fixes
...
Signed-off-by: snipe <snipe@snipe.net >
2025-07-09 21:48:53 +01:00
cd989768d4
Added HasUploads trait and remove uploads method for models
...
Signed-off-by: snipe <snipe@snipe.net >
2025-06-27 19:32:22 +01:00
4c7b6d130f
Added additional search and display fields for suppliers and locations
...
Signed-off-by: snipe <snipe@snipe.net >
2025-05-29 21:13:08 +01:00
6efd323fbf
Added adminuser method
...
Signed-off-by: snipe <snipe@snipe.net >
2025-05-29 17:12:48 +01:00
00092a079f
Added uploads method
...
Signed-off-by: snipe <snipe@snipe.net >
2025-04-21 14:42:10 +01:00
43c15ef134
Merge branch 'develop' into feature/locations_with_companies
2025-04-08 09:18:48 +01:00
e6ae9cae6b
Added notes to searchable and fillable attributes
...
Signed-off-by: snipe <snipe@snipe.net >
2025-02-11 00:33:51 +00:00
b6f05bff1f
Merge branch 'develop' into feature/locations_with_companies
2025-01-17 17:18:17 +00:00
183a4d49d8
Refactor of #15235 - added accessory checkout to locations, assets
...
Signed-off-by: snipe <snipe@snipe.net >
2024-12-16 16:34:49 +00:00
651d1c735b
Another slightly less ugly way for backward compatibility
...
Instead of using a constructor, add a special check in the boot-method for locations.
This seems to fit better in the system and does hopefully not break the existing tests.
Signed-off-by: Tobias Regnery <tobias.regnery@gmail.com >
2024-11-04 10:03:38 +01:00
1318dc6111
Add a backward compatibility setting for locations with companies
...
Now that locations have a company_id they get restricted to the users company with FullMultipleCompanySupport.
This breaks backward compatibility, because before everyone can handle locations without restrictions.
Add a setting right below FullMultipleCompanySupport so that everyone can switch to the desired behaviour.
The default is off and the existing behaviour is preserved.
2024-11-04 10:03:38 +01:00
1ccbf8942c
Add ability to tie locations to companies
...
Locations are the last big part of the application that can't be tied to companies.
This can be a problem with FullMultipleCompanySupport, because you can't restrict the visibility of locations to the company of the users.
In order to change this, add a company_id to the locations table and wire everything up in the views and controllers.
Aditionally add a new formatter to filter the locations to a specific company, like it is done for assets.
Locations are properly scoped to the users company if FullMultipleCompanySupport is enabled.
If a parent location of a location has a different company than the user, the location does not show up.
2024-11-04 10:03:37 +01:00
d0d4159088
Fixed typo
...
Signed-off-by: snipe <snipe@snipe.net >
2024-10-15 12:42:09 +01:00
4d03f1e110
Fixed #15341 - validate parent ID
...
Signed-off-by: snipe <snipe@snipe.net >
2024-08-21 09:46:18 +01:00
9350a20189
Include accessories count
...
This isn’t exactly right right now
Signed-off-by: snipe <snipe@snipe.net >
2024-08-07 20:19:47 +01:00
889d5da71e
Check for accessories on bulk items
...
Signed-off-by: snipe <snipe@snipe.net >
2024-08-07 20:04:32 +01:00
fb233c0aa4
Cleaned up facade names and references
...
Signed-off-by: snipe <snipe@snipe.net >
2024-05-29 12:38:15 +01:00
090466123f
add withCount to query instead
2024-03-19 15:18:18 -07:00
0d0984a400
Bulk Delete Locations does not work [sc-25100]
2024-03-19 14:26:40 -07:00
04891c7c61
Eager load relations to determine
...
Signed-off-by: snipe <snipe@snipe.net >
2024-02-20 22:25:00 +00:00
a6a65b7523
Fixed locations isDeletable check
...
Signed-off-by: snipe <snipe@snipe.net >
2024-02-20 16:40:09 +00:00
14c61e4c17
Added phone, fax to departments, locations, companies
...
Signed-off-by: snipe <snipe@snipe.net >
2023-07-10 19:44:21 +01:00
f1d85c67f1
Make validation match database fields
...
Signed-off-by: snipe <snipe@snipe.net >
2023-05-08 14:12:54 -07:00
bceb0b8a47
Allowed slightly longer zip codes
...
Signed-off-by: snipe <snipe@snipe.net >
2023-04-16 07:46:29 -07:00
161999fbca
Fixed #12772 - use the APP_URL config more consistently
...
Signed-off-by: snipe <snipe@snipe.net >
2023-04-05 16:05:40 -07:00
a94f1c4a64
Cleaned up and added comments
...
Signed-off-by: snipe <snipe@snipe.net >
2022-10-26 00:15:52 -07:00
7c77e03c5a
Initial rework of locations display
...
Signed-off-by: snipe <snipe@snipe.net >
2022-06-05 18:08:15 -07:00
b62d1f49e4
Shift cleanup
2021-06-10 20:19:27 +00:00
104b441e0d
Shift to class based factories
2021-06-10 20:17:44 +00:00
9f43ce97e9
Convert deprecated $dates property to $casts
2021-06-10 20:17:18 +00:00
802dc9240d
Shift bindings
...
PHP 5.5.9+ adds the new static `class` property which provides the fully qualified class name. This is preferred over using class name strings as these references are checked by the parser.
2021-06-10 20:16:56 +00: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
a704614397
Bumped max for country on model
...
Signed-off-by: snipe <snipe@snipe.net >
2021-05-07 16:42:26 -07:00
0329028e2c
Fixed #8926 , #8252 - introduce circular reference check for location parent_id - rebased from #8253 ( #8927 )
...
* Fixed #8252 - circular references in location parents
* Remove non-translated translation changes
* Fix typo
* Add loop limit to avoid unforseen infinite loops
* Remove check against parent_id in location controllers
* Remove the Location->id=null piece (no longer needed)
* Fix some formatting and whitespace
* Re-introduce accidentally merged-out language file
Co-authored-by: Travis Miller <milletr@tulsaschools.org >
2020-12-18 17:18:04 -08:00
2ea805b7ed
Added search/sort by Location OU, added to listing
2020-11-17 22:17:07 -08:00
f0546bf689
Clean up Transformers and extract an isDeletable() method to models where it makes sense.
2020-05-23 15:24:10 -04:00