mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-10 10:24:31 +02:00
Enforce positive values for min quantities and price quantites.
This commit is contained in:
parent
63508293bd
commit
b6ee0d1323
2 changed files with 7 additions and 2 deletions
|
@ -115,6 +115,7 @@ class Pricedetail extends DBElement
|
|||
/**
|
||||
* @var int
|
||||
* @ORM\Column(type="integer")
|
||||
* @Assert\Positive()
|
||||
*/
|
||||
protected $min_discount_quantity = 1;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue