modify balance modification transaction

This commit is contained in:
MaysWind
2025-08-10 17:00:08 +08:00
parent 55bf8b9e30
commit f3d240442b
6 changed files with 25 additions and 7 deletions
+5 -1
View File
@@ -1050,7 +1050,11 @@ export const useTransactionsStore = defineStore('transactions', () => {
if (transaction.type !== TransactionType.Expense &&
transaction.type !== TransactionType.Income &&
transaction.type !== TransactionType.Transfer) {
transaction.type !== TransactionType.Transfer &&
transaction.type !== TransactionType.ModifyBalance) {
reject({ message: 'An error occurred' });
return;
} else if (!isEdit && transaction.type === TransactionType.ModifyBalance) {
reject({ message: 'An error occurred' });
return;
}