mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 08:14:25 +08:00
fix cannot save new account when switch to multi account type after setting account balance
This commit is contained in:
@@ -497,7 +497,7 @@ export default {
|
|||||||
icon: self.account.icon,
|
icon: self.account.icon,
|
||||||
color: self.account.color,
|
color: self.account.color,
|
||||||
currency: self.account.type === self.$constants.account.allAccountTypes.SingleAccount.toString() ? self.account.currency : self.$constants.currency.parentAccountCurrencyPlaceholder,
|
currency: self.account.type === self.$constants.account.allAccountTypes.SingleAccount.toString() ? self.account.currency : self.$constants.currency.parentAccountCurrencyPlaceholder,
|
||||||
balance: self.account.balance,
|
balance: self.account.type === self.$constants.account.allAccountTypes.SingleAccount.toString() ? self.account.balance : 0,
|
||||||
comment: self.account.comment,
|
comment: self.account.comment,
|
||||||
subAccounts: self.account.type === self.$constants.account.allAccountTypes.SingleAccount.toString() ? null : subAccounts,
|
subAccounts: self.account.type === self.$constants.account.allAccountTypes.SingleAccount.toString() ? null : subAccounts,
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user