Confirm transaction, preview invoice inserted

This commit is contained in:
ogerly 2021-11-30 09:19:08 +01:00
parent 9566b9e127
commit 13ac14b4a9

View File

@ -32,8 +32,33 @@
</b-list-group>
</b-col>
</b-row>
{{transactions}}
<b-row>{{$n(balance, 'decimal')}}, {{ $n(decay, 'decimal') }}, {{ $n(amount, 'decimal') }}</b-row>
<b-container class="bv-example-row mt-3 gray-background p-2">
<b-row>
<b-col></b-col>
<b-col>aktueller Kontostand</b-col>
<b-col>{{$n(balance, 'decimal')}}</b-col>
</b-row>
<b-row>
<b-col> </b-col>
<b-col> <strong>Dein Betrag </strong></b-col>
<b-col> <strong>- {{$n(amount, 'decimal')}} </strong></b-col>
</b-row>
<b-row >
<b-col> </b-col>
<b-col>Vergänglichkeit</b-col>
<b-col style="border-bottom: double;">- {{$n(decay, 'decimal')}}</b-col>
</b-row>
<b-row>
<b-col></b-col>
<b-col>neuer Kontostand</b-col>
<b-col>~ {{$n(balance - amount - decay, 'decimal')}}</b-col>
</b-row>
</b-container>
<b-row class="mt-4">
<b-col>
<b-button @click="$emit('on-reset')">{{ $t('form.cancel') }}</b-button>
@ -59,6 +84,11 @@ export default {
default: () => [],
},
},
data() {
return {
decay: this.transactions[0].balance,
}
},
}
</script>
<style>