- {{ previousBookedBalance | GDD }}
+ {{ previousBalance | GDD }}
{{ decay === '0' ? $t('math.minus') : '' }}
{{ decay | GDD }} {{ $t('math.equal') }}
{{ balance | GDD }}
@@ -35,7 +35,7 @@ export default {
type: String,
required: true,
},
- previousBookedBalance: {
+ previousBalance: {
type: String,
required: true,
},
diff --git a/frontend/src/components/DecayInformations/DecayInformation-Long.vue b/frontend/src/components/DecayInformations/DecayInformation-Long.vue
index 782fe049c..d7e943225 100644
--- a/frontend/src/components/DecayInformations/DecayInformation-Long.vue
+++ b/frontend/src/components/DecayInformations/DecayInformation-Long.vue
@@ -14,7 +14,7 @@
{{ $t('decay.last_transaction') }}
-
+
{{ $d(new Date(decay.start), 'long') }}
@@ -24,30 +24,44 @@
+
+
+
+ {{ $t('decay.old_balance') }}
+
+
+ {{ previousBalance | GDD }}
+
+
+
-
-
+
+
{{ $t('decay.decay') }}
- {{ decay.decay | GDD }}
+
+ {{ decay.decay | GDD }}
+
-
+
- {{ $t(`decay.types.${typeId.toLowerCase()}`) }}
- {{ amount | GDD }}
+ {{ $t(`decay.types.${typeId.toLowerCase()}`) }}
+
+ {{ amount | GDD }}
+
-
-
- {{ $t('decay.total') }}
+
+
+ {{ $t('decay.new_balance') }}
-
- {{ (Number(amount) + Number(decay.decay)) | GDD }}
+
+ {{ balance | GDD }}
@@ -63,6 +77,8 @@ export default {
DurationRow,
},
props: {
+ balance: { type: String, default: '0' },
+ previousBalance: { type: String, default: '0' },
amount: { type: String, default: '0' },
typeId: { type: String, default: '' },
memo: { type: String, default: '' },
diff --git a/frontend/src/components/DecayInformations/DecayInformation.vue b/frontend/src/components/DecayInformations/DecayInformation.vue
index 3329fd021..0be12d0de 100644
--- a/frontend/src/components/DecayInformations/DecayInformation.vue
+++ b/frontend/src/components/DecayInformations/DecayInformation.vue
@@ -7,7 +7,15 @@
:decay="decay"
:typeId="typeId"
/>
-
+