mirror of
https://github.com/inventree/InvenTree.git
synced 2025-06-20 05:46:34 +00:00
normalize decimal fields
This commit is contained in:
@ -1230,6 +1230,10 @@ class BomItem(models.Model):
|
||||
|
||||
pmin, pmax = prange
|
||||
|
||||
# remove trailing zeros
|
||||
pmin = pmin.normalize()
|
||||
pmax = pmax.normalize()
|
||||
|
||||
if pmin == pmax:
|
||||
return str(pmin)
|
||||
|
||||
|
Reference in New Issue
Block a user