Update asserts for battery price

This commit is contained in:
Ramon Gutierrez 2018-02-01 00:44:06 +08:00
parent 8f4b745025
commit 4a1ae3f539

View file

@ -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;