3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-08-21 20:59:18 +00:00

118 Commits

Author SHA1 Message Date
19a907720c Small phpstan fixes 2026-08-16 11:35:52 +01:00
5adabfccaa Added lastOrderPrefill for cloning 2026-08-15 09:59:51 +01:00
a2afbfb911 Moved JSON response into trait 2026-08-07 11:58:43 +01:00
2c6e0283f4 Grumble grumble grumble codacy 2026-08-06 14:24:35 +01:00
138d212c50 Handle redirects for better UX 2026-08-06 14:16:16 +01:00
dbe942e68c Handle last order defaults in the controllers 2026-08-05 22:25:59 +01:00
2f22a8754e Pull item fields out of update 2026-08-05 16:01:21 +01:00
12e5e6c0fc Added enrichInitialOrderFromRequest to controllers 2026-08-05 14:31:12 +01:00
e72dba9388 Updated bulk edit forms 2026-08-05 11:50:55 +01:00
d345209aee Update controllers to use the relationship query for order_number 2026-08-03 15:29:43 +01:00
3c7fe91c86 Refactor qty adjustment to trait 2026-08-03 14:01:30 +01:00
a53928e1a4 Replenish/remove for consumables, accessories, components 2026-08-03 13:07:59 +01:00
d30b73d9c8 Harden internal URL redirect safety 2026-07-28 13:06:20 +01:00
f71806b1e0 Clean up checkout APIs for concurrency 2026-07-25 13:46:19 +01:00
f099a2e4aa Do not remove files on soft-delete 2026-07-21 16:44:49 +01:00
d24b715716 Merge pull request #19169 from olivierlambert/feature/requestable-accessories
Make accessories requestable
2026-07-17 18:36:23 +01:00
05354fcdd6 Revert storage string 2026-07-15 11:06:05 +01:00
9008509425 Fixed selection store 2026-07-14 16:17:13 +01:00
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
409e11dca4 Make accessories requestable
Accessories can now be flagged as requestable and requested by users from
the requestable items page, the same way assets and asset models already
can. No migration is needed since the accessories table already carries a
requestable column.

I kept the semantics deliberately simple: a request just records intent
(and the requested quantity) and notifies the admins. It does not touch or
reserve stock. The admin still performs the normal checkout, which is what
actually decrements quantity. That way requests behave the same for unique
assets and for quantity-based accessories, instead of inventing a separate
"reserved" state.

The admin "Requested" queue already lists every checkout request
polymorphically (it showed asset models too), so accessory requests appear
there as well; I extended that view to render the accessory name, image and
a checkout action so an admin can actually see and fulfil the request.

While wiring this up I also fixed a pre-existing bug in the request flow:
the Requestable trait saved a 'qty' key, but the column is 'quantity' and
wasn't fillable, so requested quantities were being silently dropped (this
affected asset models too). Quantity is now persisted and read back
correctly.

Components and licenses can follow the same pattern; they each just need a
small migration to add the requestable column.
2026-06-10 19:57:53 +02: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
bc808cbe46 Pint 2026-05-14 12:50:31 +01:00
fdc65fb1b2 Moved and renamed CheckInOutRequest 2026-05-14 12:50:23 +01:00
ea4374a855 Oops. Forgot to commit accessories :D 2026-04-14 21:44:00 +01:00
9bc92f57c8 Apply pint to non-API controllers 2026-03-13 16:45:30 +00:00
53abf8cdcc Load count with RMB controller 2026-03-12 14:10:43 +00:00
e376492128 Use intended() for redirect options 2026-03-12 13:57:50 +00:00
63e62cde1b Moved gates higher, switch to RMB for accessories 2026-03-12 12:13:38 +00:00
0af45a53a9 Merge pull request #18359 from marcusmoore/17816-qty-in-activity-report
Fixed #17816 - added quantity to activity reports
2026-01-05 13:03:56 +00:00
0f215bbcf8 fix: replace deprecated Symfony Request::get() usage 2025-12-17 18:44:04 -08:00
18c639e6c0 WIP - adding qty to more event calls 2025-12-15 14:38:13 -08:00
22a43a0463 adds redirect option fix to accessories update method 2025-11-05 12:19:18 -08:00
3094e007ee Set session to remember checkout type
Signed-off-by: snipe <snipe@snipe.net>
2025-09-01 13:28:07 +01:00
a5e37519f5 Merge pull request #17539 from grokability/add-file-uploads-to-maintenances
WIP: Add file uploads to maintenances
2025-08-10 11:13:19 +01:00
8d2643696b Deleted unused user file controller
Signed-off-by: snipe <snipe@snipe.net>
2025-08-08 12:55:59 +01:00
bd2acefecc rethought, keeping previous page as an option 2025-08-05 12:29:59 -07:00
f1dd84edba Added option to clone original images
Signed-off-by: snipe <snipe@snipe.net>
2025-08-04 18:47:26 +01:00
55ebb4671f update check in and check out controllers 2025-07-01 12:44:26 -07:00
5f883310b5 Improve display of user on accessory show page 2025-05-21 16:48:26 -07:00
876715b3c5 Merge pull request #16435 from marcusmoore/fixes/prevent-deleting-accessories-with-checkouts
Disallow deleting accessories that have active checkouts
2025-04-19 14:38:14 +01:00
9824f43780 added other target options to accessories and assets 2025-04-09 10:50:42 -07:00
715fc2de59 more cleaning 2025-04-08 11:58:23 -07:00
af53559ca3 cleaned up code 2025-04-08 11:54:50 -07:00
b7492928ad reworked checkedInBy, added option logic to accessories 2025-04-08 11:43:02 -07:00
e215c5f9ee Fixed #16619 - accesory clone
Signed-off-by: snipe <snipe@snipe.net>
2025-04-02 12:43:42 +01:00