mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-21 10:14:26 +08:00
update category display name for balance modification transaction
This commit is contained in:
@@ -217,7 +217,7 @@ export function useReconciliationStatementPageBase() {
|
|||||||
|
|
||||||
if (transaction.type === TransactionType.ModifyBalance) {
|
if (transaction.type === TransactionType.ModifyBalance) {
|
||||||
type = tt('Modify Balance');
|
type = tt('Modify Balance');
|
||||||
categoryName = '-';
|
categoryName = tt('Modify Balance');
|
||||||
} else if (transaction.type === TransactionType.Income) {
|
} else if (transaction.type === TransactionType.Income) {
|
||||||
type = tt('Income');
|
type = tt('Income');
|
||||||
} else if (transaction.type === TransactionType.Expense) {
|
} else if (transaction.type === TransactionType.Expense) {
|
||||||
|
|||||||
@@ -115,12 +115,15 @@
|
|||||||
</template>
|
</template>
|
||||||
<template #item.categoryId="{ item }">
|
<template #item.categoryId="{ item }">
|
||||||
<div class="d-flex align-center">
|
<div class="d-flex align-center">
|
||||||
<span v-if="item.type === TransactionType.ModifyBalance">-</span>
|
|
||||||
<ItemIcon size="24px" icon-type="category"
|
<ItemIcon size="24px" icon-type="category"
|
||||||
:icon-id="allCategoriesMap[item.categoryId].icon"
|
:icon-id="allCategoriesMap[item.categoryId].icon"
|
||||||
:color="allCategoriesMap[item.categoryId].color"
|
:color="allCategoriesMap[item.categoryId].color"
|
||||||
v-if="item.type !== TransactionType.ModifyBalance && allCategoriesMap[item.categoryId]"></ItemIcon>
|
v-if="allCategoriesMap[item.categoryId] && allCategoriesMap[item.categoryId]?.color"></ItemIcon>
|
||||||
<span class="ml-2" v-if="item.type !== TransactionType.ModifyBalance && allCategoriesMap[item.categoryId]">
|
<v-icon size="24" :icon="mdiPencilBoxOutline" v-else-if="!allCategoriesMap[item.categoryId] || !allCategoriesMap[item.categoryId]?.color" />
|
||||||
|
<span class="ml-2" v-if="item.type === TransactionType.ModifyBalance">
|
||||||
|
{{ tt('Modify Balance') }}
|
||||||
|
</span>
|
||||||
|
<span class="ml-2" v-else-if="item.type !== TransactionType.ModifyBalance && allCategoriesMap[item.categoryId]">
|
||||||
{{ allCategoriesMap[item.categoryId].name }}
|
{{ allCategoriesMap[item.categoryId].name }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -217,7 +220,8 @@ import {
|
|||||||
mdiDotsVertical,
|
mdiDotsVertical,
|
||||||
mdiReceiptTextPlusOutline,
|
mdiReceiptTextPlusOutline,
|
||||||
mdiComma,
|
mdiComma,
|
||||||
mdiKeyboardTab
|
mdiKeyboardTab,
|
||||||
|
mdiPencilBoxOutline
|
||||||
} from '@mdi/js';
|
} from '@mdi/js';
|
||||||
|
|
||||||
type SnackBarType = InstanceType<typeof SnackBar>;
|
type SnackBarType = InstanceType<typeof SnackBar>;
|
||||||
|
|||||||
Reference in New Issue
Block a user