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

View File

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