Add total if name is missing

This commit is contained in:
2024-06-04 16:18:52 +02:00
parent ac07236936
commit 11f886cd71

View File

@@ -208,9 +208,15 @@ const total = computed(() => {
<tfoot v-if="!!total"> <tfoot v-if="!!total">
<tr> <tr>
<td v-if="showColumn('name')">Total</td> <td v-if="showColumn('name')">Total</td>
<td v-if="showColumn('buy')" /> <td v-if="showColumn('buy')">
<td v-if="showColumn('sell')" /> <template v-if="!showColumn('name')">Total</template>
<td v-if="showColumn('date')" /> </td>
<td v-if="showColumn('sell')">
<template v-if="!showColumn('name') && !showColumn('buy')">Total</template>
</td>
<td v-if="showColumn('date')">
<template v-if="!showColumn('name') && !showColumn('buy') && !showColumn('sell')">Total</template>
</td>
<td v-if="showColumn('price')" class="text-right"> <td v-if="showColumn('price')" class="text-right">
<template v-if="total.sameItem"> <template v-if="total.sameItem">
{{ formatIsk(total.price) }} {{ formatIsk(total.price) }}