fixed bug ##269

es wurde der Betrag vergrößert
This commit is contained in:
Tim Gröger 2020-06-17 22:47:13 +02:00
parent 084caa34c3
commit 743a1425e6
2 changed files with 11 additions and 8 deletions

View File

@ -54,7 +54,7 @@
<v-progress-linear indeterminate v-if="message.loading" /> <v-progress-linear indeterminate v-if="message.loading" />
<v-list-item-title>{{ now(message.date) }}</v-list-item-title> <v-list-item-title>{{ now(message.date) }}</v-list-item-title>
<v-list-item-subtitle> <v-list-item-subtitle>
{{ createMessage(message) }} {{createSum(message)}} {{ createMessage(message) }}
</v-list-item-subtitle> </v-list-item-subtitle>
<v-list-item-subtitle class="red--text" v-if="message.storno" <v-list-item-subtitle class="red--text" v-if="message.storno"
>STORNIERT!!! >STORNIERT!!!
@ -199,7 +199,7 @@
vertical vertical
> >
<div class="title"> <div class="title">
{{ createMessage(message) }} <p style="font-size: 5em; margin: 20px">{{createSum(message)}}</p>{{ createMessage(message) }}
</div> </div>
<div> <div>
{{now(message.date)}} {{now(message.date)}}
@ -298,22 +298,24 @@ export default {
this.value = null this.value = null
}, 300) }, 300)
}, },
createSum(message) {
var text = '' +
(message.amount / 100).toFixed(2) +
'€'
return text
},
createMessage(message) { createMessage(message) {
var text = '' var text = ''
if (message.error) { if (message.error) {
text = text =
'Konnte ' + ' konnten nicht zu ' +
(message.amount / 100).toFixed(2) +
'€ zu ' +
message.user.firstname + message.user.firstname +
' ' + ' ' +
message.user.lastname + message.user.lastname +
' hinzufügen.' ' hinzufügen.'
} else { } else {
text = text =
'' + ' wurde zu ' +
(message.amount / 100).toFixed(2) +
'€ wurde zu ' +
message.user.firstname + message.user.firstname +
' ' + ' ' +
message.user.lastname + message.user.lastname +

View File

@ -2,6 +2,7 @@
const main = 'http://localhost:5000/' const main = 'http://localhost:5000/'
//const main = 'http://192.168.5.118:5000/' //const main = 'http://192.168.5.118:5000/'
//const main = 'https://groeger-clan.duckdns.org:5000/' //const main = 'https://groeger-clan.duckdns.org:5000/'
//const main = 'https://flaschengeist.wu5.de:5000/'
const url = { const url = {
login: main + 'login', login: main + 'login',