diff --git a/src/sakia/core/money/quant_zerosum.py b/src/sakia/core/money/quant_zerosum.py
index c77a009a..e023c4c2 100644
--- a/src/sakia/core/money/quant_zerosum.py
+++ b/src/sakia/core/money/quant_zerosum.py
@@ -37,12 +37,12 @@ def translated_name(cls):
def units(self):
return QCoreApplication.translate("QuantitativeZSum", QuantitativeZSum._UNITS_STR_).format(self.community.short_currency)
- @classmethod
- def formula(cls):
+ @property
+ def formula(self):
return QCoreApplication.translate('QuantitativeZSum', QuantitativeZSum._FORMULA_STR_)
- @classmethod
- def description(cls):
+ @property
+ def description(self):
return QCoreApplication.translate("QuantitativeZSum", QuantitativeZSum._DESCRIPTION_STR_)
@property
diff --git a/src/sakia/core/money/quantitative.py b/src/sakia/core/money/quantitative.py
index ac6cfcb8..55434344 100644
--- a/src/sakia/core/money/quantitative.py
+++ b/src/sakia/core/money/quantitative.py
@@ -27,12 +27,12 @@ def translated_name(cls):
def units(self):
return QCoreApplication.translate("Quantitative", Quantitative._UNITS_STR_).format(self.community.short_currency)
- @classmethod
- def formula(cls):
+ @property
+ def formula(self):
return QCoreApplication.translate('Quantitative', Quantitative._FORMULA_STR_)
- @classmethod
- def description(cls):
+ @property
+ def description(self):
return QCoreApplication.translate("Quantitative", Quantitative._DESCRIPTION_STR_)
@property
diff --git a/src/sakia/core/money/relative.py b/src/sakia/core/money/relative.py
index 697ec8be..fd651ebc 100644
--- a/src/sakia/core/money/relative.py
+++ b/src/sakia/core/money/relative.py
@@ -38,12 +38,12 @@ def translated_name(cls):
def units(self):
return QCoreApplication.translate("Relative", Relative._UNITS_STR_).format(self.community.short_currency)
- @classmethod
- def formula(cls):
+ @property
+ def formula(self):
return QCoreApplication.translate('Relative', Relative._FORMULA_STR_)
- @classmethod
- def description(cls):
+ @property
+ def description(self):
return QCoreApplication.translate("Relative", Relative._DESCRIPTION_STR_)
@property
diff --git a/src/sakia/core/money/relative_to_past.py b/src/sakia/core/money/relative_to_past.py
index 8fdae53c..daaef168 100644
--- a/src/sakia/core/money/relative_to_past.py
+++ b/src/sakia/core/money/relative_to_past.py
@@ -7,6 +7,23 @@ class RelativeToPast(BaseReferential):
_NAME_STR_ = QT_TRANSLATE_NOOP('RelativeToPast', 'Past UD')
_REF_STR_ = QT_TRANSLATE_NOOP('RelativeToPast', "{0} {1}UD({2}) {3}")
_UNITS_STR_ = QT_TRANSLATE_NOOP('RelativeToPast', "UD({0}) {1}")
+ _FORMULA_STR_ = QT_TRANSLATE_NOOP('RelativeToPast',
+ """R = Q / UD(t)
+
+
R | Relative value |
Q | Quantitative value |
UD | Universal Dividend |
t | Time when the value appeared |