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:
@ -170,7 +170,7 @@ class Consumable extends SnipeModel
|
||||
return 100;
|
||||
}
|
||||
|
||||
if ($this->qty == '') {
|
||||
if (($this->qty == '') || ($this->qty == 0)) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user