mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Use decimal2string instead of normalize
This commit is contained in:
parent
520b8d7b2b
commit
d04fb0d826
@ -1243,12 +1243,8 @@ class BomItem(models.Model):
|
||||
|
||||
pmin, pmax = prange
|
||||
|
||||
# remove trailing zeros
|
||||
pmin = pmin.normalize()
|
||||
pmax = pmax.normalize()
|
||||
|
||||
if pmin == pmax:
|
||||
return str(pmin)
|
||||
return decimal2string(pmin)
|
||||
|
||||
# Convert to better string representation
|
||||
pmin = decimal2string(pmin)
|
||||
|
Loading…
Reference in New Issue
Block a user