update loan product code and rd,fd,saving,current account validation add

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Nitesh Yadav
2026-05-14 07:40:04 +05:30
co-authored by Claude Sonnet 4.6
parent ed45c8637e
commit d0370781e8
30 changed files with 1286 additions and 213 deletions
@@ -65,7 +65,7 @@
<div class="section-header__left">
<i class="fa fa-bank section-header__icon"></i>
<h3 class="section-header__title">{{ 'labels.heading.Saving Accounts' | translate }}</h3>
<span class="section-header__badge">{{ savingAccounts?.length || 0 }}</span>
<span class="section-header__badge">{{ pureSavingsCount }}</span>
</div>
<div class="section-header__right">
<button mat-raised-button color="primary" (click)="toggleSavingAccountsOverview()">
@@ -226,8 +226,20 @@ export class GeneralTabComponent implements OnDestroy {
clientAccountData: any;
/** Loan Accounts Data */
loanAccounts: any[] = [];
/** Savings Accounts Data */
/** Savings Accounts Data (all: savings + FD + RD — filtered per section) */
savingAccounts: any[] = [];
get pureSavingsCount(): number {
return this.savingAccounts.filter((a: any) => a.depositType?.code === 'depositAccountType.savingsDeposit').length;
}
get fixedDepositCount(): number {
return this.savingAccounts.filter((a: any) => a.depositType?.code === 'depositAccountType.fixedDeposit').length;
}
get recurringDepositCount(): number {
return this.savingAccounts.filter((a: any) => a.depositType?.code === 'depositAccountType.recurringDeposit').length;
}
/** Current Accounts Data */
currentAccounts: any[] = [];
/** Shares Accounts Data */