3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-08-18 11:15:42 +00:00

Handle 0 qty for consumables

This commit is contained in:
snipe
2026-04-09 15:10:58 +01:00
parent f49837e5fe
commit fece4d2fdc

View File

@ -170,7 +170,7 @@ class Consumable extends SnipeModel
return 100;
}
if ($this->qty == '') {
if (($this->qty == '') || ($this->qty == 0)) {
return 1;
}