mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-08 01:14:34 +02:00
Improved user experience with part withdraw modal
Related to issue #201
This commit is contained in:
parent
ba4085d882
commit
436aff7533
6 changed files with 128 additions and 17 deletions
|
@ -39,6 +39,11 @@ class PartLotWithdrawAddHelper
|
|||
return false;
|
||||
}
|
||||
|
||||
//Part must contain more than 0 parts
|
||||
if ($partLot->getAmount() <= 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue