Update asserts for battery price
This commit is contained in:
parent
8f4b745025
commit
4a1ae3f539
1 changed files with 2 additions and 0 deletions
|
|
@ -118,6 +118,8 @@ class Battery
|
|||
// selling price
|
||||
/**
|
||||
* @ORM\Column(type="decimal", precision=7, scale=2, nullable=true)
|
||||
* @Assert\NotBlank()
|
||||
* @Assert\Range(min=0, minMessage="This value should be a valid number.")
|
||||
*/
|
||||
protected $sell_price;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue