Compare commits
1 commit
46e255315d
...
9343bc1907
| Author | SHA1 | Date | |
|---|---|---|---|
| 9343bc1907 |
1 changed files with 10 additions and 10 deletions
|
|
@ -399,16 +399,9 @@ onMounted(() => {
|
||||||
<span class="font-medium">Ref:</span> {{ transaction.reference }}
|
<span class="font-medium">Ref:</span> {{ transaction.reference }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Badges: Voided (leftmost, high-signal) + type (Income /
|
<!-- Badges: type (Income / Expense) + status (Voided / Pending,
|
||||||
Expense) + Pending (after type) + any user-added tags. -->
|
mutually exclusive) + any user-added tags. -->
|
||||||
<div class="flex flex-wrap gap-1 mt-2">
|
<div class="flex flex-wrap gap-1 mt-2">
|
||||||
<Badge
|
|
||||||
v-if="isVoided(transaction)"
|
|
||||||
variant="secondary"
|
|
||||||
class="text-xs bg-red-100 dark:bg-red-900/20 text-red-700 dark:text-red-300"
|
|
||||||
>
|
|
||||||
Voided
|
|
||||||
</Badge>
|
|
||||||
<Badge
|
<Badge
|
||||||
v-if="isIncome(transaction)"
|
v-if="isIncome(transaction)"
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
|
|
@ -424,7 +417,14 @@ onMounted(() => {
|
||||||
Expense
|
Expense
|
||||||
</Badge>
|
</Badge>
|
||||||
<Badge
|
<Badge
|
||||||
v-if="isPending(transaction)"
|
v-if="isVoided(transaction)"
|
||||||
|
variant="secondary"
|
||||||
|
class="text-xs bg-red-100 dark:bg-red-900/20 text-red-700 dark:text-red-300"
|
||||||
|
>
|
||||||
|
Voided
|
||||||
|
</Badge>
|
||||||
|
<Badge
|
||||||
|
v-else-if="isPending(transaction)"
|
||||||
variant="secondary"
|
variant="secondary"
|
||||||
class="text-xs bg-yellow-100 dark:bg-yellow-900/20 text-yellow-700 dark:text-yellow-300"
|
class="text-xs bg-yellow-100 dark:bg-yellow-900/20 text-yellow-700 dark:text-yellow-300"
|
||||||
>
|
>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue