mirror of
https://github.com/inventree/InvenTree.git
synced 2026-10-07 10:51:17 +00:00
Fix checking if decimal_places is set
This commit is contained in:
1 parent
5d54c8d6a2
commit
eec82b52ee
1 file changed
+1
-1
@@ -187,7 +187,7 @@ def format_money(money: Money, decimal_places: int = None, format: str = None) -
|
|||||||
pattern = parse_pattern(format)
|
pattern = parse_pattern(format)
|
||||||
else:
|
else:
|
||||||
pattern = locale.currency_formats["standard"]
|
pattern = locale.currency_formats["standard"]
|
||||||
if decimal_places:
|
if decimal_places is not None:
|
||||||
pattern.frac_prec = (decimal_places, decimal_places)
|
pattern.frac_prec = (decimal_places, decimal_places)
|
||||||
|
|
||||||
return pattern.apply(
|
return pattern.apply(
|
||||||
|
|||||||
Reference in new issue
Block a user