not need balance time field in parent account

This commit is contained in:
MaysWind
2024-11-15 00:34:46 +08:00
parent 934f90cdff
commit 835b3b7b8b
6 changed files with 17 additions and 2 deletions
+1
View File
@@ -1058,6 +1058,7 @@
"destination account not found": "Destination account is not found",
"account is in use and cannot be deleted": "Account is in use and it cannot be deleted",
"account category is invalid": "Account category is invalid",
"account balance time is not set": "Account balance time is not set",
"transaction id is invalid": "Transaction ID is invalid",
"transaction not found": "Transaction is not found",
"transaction type is invalid": "Transaction type is invalid",
+1
View File
@@ -1058,6 +1058,7 @@
"destination account not found": "目标账户不存在",
"account is in use and cannot be deleted": "账户正在被使用,无法删除",
"account category is invalid": "账户分类无效",
"account balance time is not set": "账户余额时间没有设置",
"transaction id is invalid": "交易ID无效",
"transaction not found": "交易不存在",
"transaction type is invalid": "交易类型无效",
+3 -1
View File
@@ -791,7 +791,9 @@ export const useAccountsStore = defineStore('accounts', {
submitAccount.id = account.id;
submitAccount.hidden = !account.visible;
} else {
submitAccount.balanceTime = account.balanceTime;
if (account.type === accountConstants.allAccountTypes.SingleAccount) {
submitAccount.balanceTime = account.balanceTime;
}
}
const oldAccount = submitAccount.id ? self.allAccountsMap[submitAccount.id] : null;