mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-17 00:12:11 +08:00
add search box in filter account page / dialog
This commit is contained in:
+21
-12
@@ -349,6 +349,27 @@ export class Account implements AccountInfoResponse {
|
||||
return subAccountCurrencies;
|
||||
}
|
||||
|
||||
public cloneSelf(): Account {
|
||||
return new Account(
|
||||
this.id,
|
||||
this.name,
|
||||
this.parentId,
|
||||
this.category,
|
||||
this.type,
|
||||
this.icon,
|
||||
this.color,
|
||||
this.currency,
|
||||
this.balance,
|
||||
this.comment,
|
||||
this.displayOrder,
|
||||
this.visible,
|
||||
this.balanceTime,
|
||||
this.creditCardStatementDate,
|
||||
this.isAsset,
|
||||
this.isLiability
|
||||
);
|
||||
}
|
||||
|
||||
public clone(): Account {
|
||||
return new Account(
|
||||
this.id,
|
||||
@@ -658,18 +679,6 @@ export class CategorizedAccountWithDisplayBalance {
|
||||
}
|
||||
}
|
||||
|
||||
export interface AccountCategoriesWithVisibleCount {
|
||||
readonly category: number;
|
||||
readonly name: string;
|
||||
readonly icon: string;
|
||||
readonly allAccounts: Account[];
|
||||
readonly allVisibleAccountCount: number;
|
||||
readonly firstVisibleAccountIndex: number;
|
||||
readonly allSubAccounts: Record<string, Account[]>;
|
||||
readonly allVisibleSubAccountCounts: Record<string, number>;
|
||||
readonly allFirstVisibleSubAccountIndexes: Record<string, number>;
|
||||
}
|
||||
|
||||
export interface AccountShowingIds {
|
||||
readonly accounts: Record<number, string>;
|
||||
readonly subAccounts: Record<string, string>;
|
||||
|
||||
Reference in New Issue
Block a user