[treasury] Product quantities are finally decimal fields
This commit is contained in:
parent
ec0bcbf015
commit
b46ae6f856
2 changed files with 5 additions and 3 deletions
|
|
@ -132,7 +132,9 @@ class Product(models.Model):
|
|||
verbose_name=_("Designation"),
|
||||
)
|
||||
|
||||
quantity = models.FloatField(
|
||||
quantity = models.DecimalField(
|
||||
decimal_places=2,
|
||||
max_digits=7,
|
||||
verbose_name=_("Quantity"),
|
||||
validators=[MinValueValidator(0)],
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue