mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 16:24:25 +08:00
support adding / deleting sub account after account created (#77)
This commit is contained in:
@@ -91,6 +91,10 @@ export function useAccountEditPageBaseBase() {
|
||||
}
|
||||
}
|
||||
|
||||
function isNewAccount(account: Account): boolean {
|
||||
return account.id === '' || account.id === '0';
|
||||
}
|
||||
|
||||
function isInputEmpty(): boolean {
|
||||
const isAccountEmpty = !!getInputEmptyProblemMessage(account.value, false);
|
||||
|
||||
@@ -172,6 +176,7 @@ export function useAccountEditPageBaseBase() {
|
||||
isAccountSupportCreditCardStatementDate,
|
||||
// functions
|
||||
getAccountCreditCardStatementDate,
|
||||
isNewAccount,
|
||||
isInputEmpty,
|
||||
getAccountOrSubAccountProblemMessage,
|
||||
addSubAccount,
|
||||
|
||||
Reference in New Issue
Block a user