fixed test problems and calculation for last Transaction decay

This commit is contained in:
ogerly 2022-02-11 09:43:25 +01:00
parent 36c1116654
commit 4441a8c717
2 changed files with 5 additions and 5 deletions

View File

@ -59,11 +59,11 @@
<div>{{ $t('decay.decay') }}</div>
</b-col>
<b-col cols="6">
<div v-if="decaytyp === 'new'">{{ $n(decay.balance, 'decimal') }}</div>
<div v-if="decaytyp === 'new'">- {{ $n(decay.balance, 'decimal') }}</div>
<div v-if="decaytyp === 'decayLastTransaction'">
{{ $n(decay.balance, 'decimal') }} GDD -
{{ $n(decay.balance + gddbalance, 'decimal') }} =
<b>{{ $n(gddbalance, 'decimal') }}</b>
{{ $n(decay.balance + gddbalance, 'decimal') }} GDD -
{{ $n(decay.balance, 'decimal') }} GDD =
<b>{{ $n(gddbalance, 'decimal') }} GDD</b>
</div>
</b-col>
</b-row>

View File

@ -117,7 +117,7 @@ describe('GddTransactionList', () => {
decay: { balance: '1.5' },
},
{
balance: '1.07',
balance: 1.07,
type: 'decay',
},
],