spencerrlongg
e273c7cbc5
Refactor asset retrieval to support pagination.
...
Introduced offset and limit handling for API asset queries to enable proper pagination. Adjusted the total count logic to maintain consistency in responses and ensure accurate transformation of assets.
2025-03-25 15:21:18 -05:00
Godfrey M
d28cc024cf
add DefaultLabel if no label2_template is selected
2025-03-25 12:40:23 -07:00
spencerrlongg
168a3df157
Fix condition in statusMeta for correct property check
...
Updated the conditional check to use 'assigned_to' instead of 'assigned' for determining the deployment status. This ensures the code references the correct property on the model.
2025-03-25 14:39:51 -05:00
Marcus Moore
02f109c3b5
Include input when redirecting back
2025-03-20 14:04:19 -07:00
Marcus Moore
0ed0a7f9f3
Avoid sending emails for asset checkouts that failed
2025-03-20 14:01:48 -07:00
Marcus Moore
5dcd4b2942
Return valid error message
2025-03-20 13:26:27 -07:00
Marcus Moore
cef83ad652
Avoid hard failure on missing accessory in location transformer
2025-03-19 14:11:47 -07:00
Marcus Moore
e6ccff103f
Add simple null check to avoid attempting to transform missing relationship
2025-03-19 12:52:01 -07:00
akemidx
5944034b8b
moving warranty/depreciation to be with the other cost/eol values
2025-03-19 15:22:09 -04:00
akemidx
a398c4ab84
reset
2025-03-18 16:37:27 -04:00
akemidx
27417cdec7
removing depreciation logic (unneeded for purchase cost)
2025-03-18 16:36:36 -04:00
Godfrey M
07096c8a31
rename note to notes
2025-03-18 10:37:00 -07:00
Godfrey M
cbc6c2754c
add notes as fillable to license seat model
2025-03-18 10:27:56 -07:00
Jeremy Price
3d2d7684aa
Add console command to disable SAML logins
...
If a Snipe-IT sire has SAML enabled, and the SAML config is sufficiently
borked, the site will fail to even load the login page. That's probably
something that should be examined, but in the meantime, it'd be handy to
not have to manually edit the database to turn off SAML.
In this commit, I'm creating a saml-disable console command. And by
create, i mean i'm copypasta-ing the existing ldap-disable command.
2025-03-17 19:58:21 -07:00
Marcus Moore
9aede45918
Remove unneeded eager loads
2025-03-17 14:43:23 -07:00
Marcus Moore
b26a73e385
Filter out empty email address in alerts
2025-03-17 12:30:15 -07:00
Marcus Moore
650839b68a
Update command name
2025-03-12 17:05:16 -07:00
Marcus Moore
388dc23241
Add comments
2025-03-12 17:02:05 -07:00
Marcus Moore
32b194ddc7
Update description
2025-03-12 16:44:37 -07:00
Marcus Moore
9cea6cee26
Docblock
2025-03-12 16:42:50 -07:00
Marcus Moore
73f64c53b1
Skip logs where created_by cannot be set
2025-03-12 16:42:39 -07:00
Marcus Moore
2091f66f5b
Reorganize
2025-03-12 16:30:36 -07:00
snipe
ff637f1926
Merge pull request #16497 from marcusmoore/fixes/diff-in
...
Fixed various carbon displays
2025-03-12 23:17:48 +00:00
Marcus Moore
25fb1abc95
Fix eol rate in AssetObserver
2025-03-12 15:58:11 -07:00
Marcus Moore
658bef447d
Fix eol rate in Actionlog
2025-03-12 15:55:13 -07:00
Marcus Moore
a28ff22d03
Fix eol rate in ReportsController
2025-03-12 15:44:06 -07:00
Marcus Moore
63a1ee0047
Fix eol rate in AssetMaintenancesController
2025-03-12 15:38:54 -07:00
Marcus Moore
e439f1f42b
Fix eol rate in AssetMaintenancesController
2025-03-12 15:35:46 -07:00
snipe
083cf78305
Added footer style for nicer number cell padding
...
Signed-off-by: snipe <snipe@snipe.net>
2025-03-12 21:17:41 +00:00
Marcus Moore
824271078e
Fix eol rate in AssetsController
2025-03-12 13:55:12 -07:00
Marcus Moore
1122cd8567
Fix eol rate in asset transformer
2025-03-12 13:33:15 -07:00
snipe
7421d089ff
Added formatter and centering in presenters
...
Signed-off-by: snipe <snipe@snipe.net>
2025-03-12 20:25:00 +00:00
snipe
dfacd876d5
Added remaining/min_amt to transformers
...
Signed-off-by: snipe <snipe@snipe.net>
2025-03-12 20:13:15 +00:00
Marcus Moore
be6caf936e
Avoid logging consumable checkins
2025-03-12 11:48:14 -07:00
snipe
f1e70eb7a0
Add min_qty to asset model bulk edit
...
Signed-off-by: snipe <snipe@snipe.net>
2025-03-12 18:27:27 +00:00
snipe
c73dba4a43
Better visual spacing
...
Signed-off-by: snipe <snipe@snipe.net>
2025-03-12 17:28:05 +00:00
snipe
5e61a814a7
Merge pull request #16489 from marcusmoore/bug/sc-28644
...
Fixed timestamp in action log for bulk accessory check in
2025-03-12 14:56:52 +00:00
Marcus Moore
935d3eea9f
Attempt to match and populate created_by
2025-03-11 17:17:39 -07:00
Marcus Moore
fffc606d9a
Improve output
2025-03-11 17:06:02 -07:00
Marcus Moore
c3a48182fd
Display the created_by
2025-03-11 17:03:26 -07:00
Marcus Moore
147e610062
Add todos
2025-03-11 17:00:36 -07:00
Marcus Moore
dd14eac1eb
Prompt for confirmation
2025-03-11 16:56:07 -07:00
Marcus Moore
4954d972bb
Write table of ids
2025-03-11 16:52:20 -07:00
Marcus Moore
c8177eb51e
Update timestamps
2025-03-11 16:50:16 -07:00
Marcus Moore
a8cccffa1e
Update output
2025-03-11 16:41:22 -07:00
Marcus Moore
c774e969d7
Scaffold command
2025-03-11 16:34:07 -07:00
Marcus Moore
b5fa538a54
Set created_by correctly in he action log
2025-03-11 16:05:02 -07:00
snipe
fcdc1494c2
Merge pull request #16443 from azmcnutt/feature/labels_Avery_5520_1DBarcode
...
Nice work! Thank you!
2025-03-11 22:12:09 +00:00
Marcus Moore
fd854072b0
Properly handle route model bound LicenseSeat not being found
2025-03-11 13:03:00 -07:00
Marcus Moore
f202817852
Use translation strings
2025-03-06 12:43:59 -08:00