From dc09a0ccf665106d3e6c08b135f52e56ff4768db Mon Sep 17 00:00:00 2001 From: Moriz Wahl Date: Wed, 30 Mar 2022 15:03:54 +0200 Subject: [PATCH] get balance of previous transaction to avoid decay calculation --- .../DecayInformations/DecayInformation-Decay.vue | 6 +++++- frontend/src/components/GddTransactionList.vue | 10 +++++++++- .../src/components/Transactions/TransactionDecay.vue | 10 +++++++++- 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/frontend/src/components/DecayInformations/DecayInformation-Decay.vue b/frontend/src/components/DecayInformations/DecayInformation-Decay.vue index 6abacd2b8..d8ba13738 100644 --- a/frontend/src/components/DecayInformations/DecayInformation-Decay.vue +++ b/frontend/src/components/DecayInformations/DecayInformation-Decay.vue @@ -13,7 +13,7 @@
- {{ (Number(balance) - Number(decay)) | GDD }} + {{ previousBookedBalance | GDD }} {{ decay | GDD }} {{ $t('math.equal') }} {{ balance | GDD }}
@@ -33,6 +33,10 @@ export default { type: String, required: true, }, + previousBookedBalance: { + type: String, + required: true, + }, }, } diff --git a/frontend/src/components/GddTransactionList.vue b/frontend/src/components/GddTransactionList.vue index 2424907c5..7be0797a8 100644 --- a/frontend/src/components/GddTransactionList.vue +++ b/frontend/src/components/GddTransactionList.vue @@ -15,7 +15,11 @@