Skip to content
Snippets Groups Projects
Commit b4ad6703 authored by Vincent Texier's avatar Vincent Texier
Browse files

Fix bad diff_units of monetary mass in community_tile

parent 33a27ac4
Branches
Tags
No related merge requests found
......@@ -104,7 +104,7 @@ class RelativeZSum(BaseReferential):
localized_value = QLocale().toString(float(value), 'f', self.app.preferences['digits_after_comma'])
if units or international_system:
return QCoreApplication.translate("RelativeZSum", RelativeZSum._REF_STR_)\
return QCoreApplication.translate("Relative", Relative._REF_STR_)\
.format(localized_value, prefix, self.community.short_currency if units else "")
else:
return localized_value
......@@ -72,7 +72,7 @@ class CommunityTile(QFrame):
international_system=self.app.preferences['international_system_of_units'])
if current_block['monetaryMass']:
localized_monetary_mass = await self.app.current_account.current_ref(current_block['monetaryMass'],
self.community, self.app).localized(units=True,
self.community, self.app).diff_localized(units=True,
international_system=self.app.preferences['international_system_of_units'])
else:
localized_monetary_mass = ""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment