mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-18 08:44:25 +08:00
modify balance modification transaction
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user