snipe-it icon indicating copy to clipboard operation
snipe-it copied to clipboard

[Feature Request?] min_amt to NULL instead of 0 by default

Open ghost opened this issue 9 years ago • 7 comments

Expected Behavior (or desired behavior if a feature request)

I want to be able to not have minimum amount for accessory, consumable and component. When I save the item it should have NULL value by default, now it saves as 0.


Actual Behavior

When I edit the asset, change the data but if I don't want to set min amount it automatically saves with minimum amount of 0. This behaviour triggers me notifications that my accessory have reached 0 when I assign all accessories to someone. Some accessories are required on demand only, so I don't want to see notifications when everything is assigned.


Please provide answers to these questions before posting your bug report:

  • Version v3.6.2 build 18 (g6f1e0d6)
  • Ubuntu 14.04.5 LTS (GNU/Linux 4.4.0-57-generic x86_64)
  • manual installation
  • I don't get any errors in debug mode.
  • Accessories, Components, Consumables. Any item I edit and create.
  • This is reproduceable on the demo. I created accessory with amount of 1, assigned it to user and now it shows me notification '0 remaining': https://demo.snipeitapp.com/admin/accessories/16/view

ghost avatar Dec 30 '16 10:12 ghost

Yeah it should definitely work like this:

  • NULL = Never shows on the quantity notification
  • 0 = Only shows on the quantity notification when all are checked out
  • A number other than 0 = Only shows on the quantity notification having dropped below (maybe equal to?) this number.

aglasson avatar Jan 06 '17 08:01 aglasson

I'd like to +1 this.

Rhaelyx avatar Jan 13 '17 07:01 Rhaelyx

+1 Yes, please!

SylentBobNJ avatar Mar 28 '17 16:03 SylentBobNJ

+1 to this please

graywoodford avatar May 08 '17 13:05 graywoodford

+1

OmniTroid avatar Aug 25 '17 09:08 OmniTroid

Didn't make it into 4.0 :(

SylentBobNJ avatar Sep 27 '17 20:09 SylentBobNJ

Can you pull from develop and see if this resolves your issue?

snipe avatar Sep 27 '17 21:09 snipe