BarUser FreeDrinkList zeigt Summe von Bandgetränken an.

This commit is contained in:
Tim Gröger 2020-09-01 09:31:03 +02:00
parent 10eccba914
commit 3d311d3677
1 changed files with 9 additions and 3 deletions

View File

@ -90,9 +90,8 @@
<v-list-item-content class="text-center">
<v-list-item-action-text class="title">
{{
free_drink_list_history_band_without_canceled.length
}}
Getränke
(free_drink_list_history_band_without_canceled_price/100).toFixed(2)
}}
</v-list-item-action-text>
</v-list-item-content>
</v-list-item>
@ -398,6 +397,13 @@ export default {
this.free_drink_list_config_band.length == 0 &&
this.free_drink_list_config_job.length == 0
)
},
free_drink_list_history_band_without_canceled_price() {
let sum = 0
this.free_drink_list_history_band_without_canceled.forEach(item => {
sum += item.free_drink_config.price
})
return sum
}
},
beforeDestroy() {