Compare commits
1 commit
9343bc1907
...
46e255315d
| Author | SHA1 | Date | |
|---|---|---|---|
| 46e255315d |
1 changed files with 10 additions and 10 deletions
|
|
@ -399,9 +399,16 @@ onMounted(() => {
|
||||||
<span class="font-medium">Ref:</span> {{ transaction.reference }}
|
<span class="font-medium">Ref:</span> {{ transaction.reference }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<!-- Badges: type (Income / Expense) + status (Voided / Pending,
|
<!-- Badges: Voided (leftmost, high-signal) + type (Income /
|
||||||
mutually exclusive) + any user-added tags. -->
|
Expense) + Pending (after type) + 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"
|
||||||
|
|
@ -417,14 +424,7 @@ onMounted(() => {
|
||||||
Expense
|
Expense
|
||||||
</Badge>
|
</Badge>
|
||||||
<Badge
|
<Badge
|
||||||
v-if="isVoided(transaction)"
|
v-if="isPending(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