2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-06-19 05:25:42 +00:00

Reporting: Build line label fix (#6717)

* Fix "BuildLine" label in PUI

- Point to "buildline" not "build"

* Prevent escape closing template ediror

* Update report docs

* Fix for format_number

- Prevent number from being represented as scientific notation
This commit is contained in:
Oliver
2024-03-15 12:24:17 +11:00
committed by GitHub
parent 0196dd2f60
commit 57a1a81e9b
9 changed files with 47 additions and 9 deletions

View File

@ -410,7 +410,10 @@ def format_number(number, **kwargs):
except ValueError:
pass
value = str(number)
# Re-encode, and normalize again
value = Decimal(number).normalize()
value = format(value, 'f')
value = str(value)
leading = kwargs.get('leading', None)