2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-08-01 17:41:33 +00:00

Fix checking if decimal_places is set

This commit is contained in:
Bobbe
2023-10-25 02:11:54 +02:00
parent 5d54c8d6a2
commit eec82b52ee

View File

@@ -187,7 +187,7 @@ def format_money(money: Money, decimal_places: int = None, format: str = None) -
pattern = parse_pattern(format)
else:
pattern = locale.currency_formats["standard"]
if decimal_places:
if decimal_places is not None:
pattern.frac_prec = (decimal_places, decimal_places)
return pattern.apply(