saving account,current account and rd account modify based on new update

This commit is contained in:
Nitesh Yadav
2026-04-27 10:55:03 +05:30
parent 5fb25edca5
commit e4516934a7
36 changed files with 4302 additions and 663 deletions
@@ -96,6 +96,9 @@
[currentAccountSettingsForm]="currentAccountSettingsForm"
[currentAccountTermsForm]="currentAccountTermsForm"
[currentAccount]="currentAccount"
[currentAccountDigital]="currentAccountDigital"
[currentAccountNominee]="currentAccountNominee"
[currentAccountCurrencyFlags]="currentAccountCurrencyFlags"
(submitEvent)="submit()"
>
</mifosx-current-account-preview-step>
@@ -66,14 +66,15 @@ export class CreateCurrentAccountComponent {
/** Current Account Product Template */
currentAccountProductTemplate: any;
/** Current Account Details Step */
@ViewChild(CurrentAccountDetailsStepComponent, { static: true })
currentAccountDetailsStep: CurrentAccountDetailsStepComponent;
/** Current Account Currency Step */
@ViewChild(CurrentAccountCurrencyStepComponent, { static: true })
@ViewChild(CurrentAccountCurrencyStepComponent)
currentAccountCurrencyStep: CurrentAccountCurrencyStepComponent;
@ViewChild(CurrentAccountDigitalStepComponent)
currentAccountDigitalStep: CurrentAccountDigitalStepComponent;
constructor() {
this.route.data.subscribe((data: { currentAccountTemplate: any }) => {
this.currentAccountTemplate = data.currentAccountTemplate;
@@ -107,12 +108,23 @@ export class CreateCurrentAccountComponent {
return new FormGroup({});
}
/**
* Retrieves current account object.
*/
get currentAccount() {
return { ...this.currentAccountDetailsStep.currentAccountDetails };
}
get currentAccountDigital() {
return this.currentAccountDigitalStep?.currentAccountDigital ?? null;
}
get currentAccountNominee() {
return this.currentAccountCurrencyStep?.nomineeData ?? null;
}
get currentAccountCurrencyFlags() {
return {
...this.currentAccountDetailsStep.currentAccountDetails
balanceSwapOption: this.currentAccountCurrencyStep?.balanceSwapOption ?? false,
msme: this.currentAccountCurrencyStep?.msme ?? false,
autoDebitFacility: this.currentAccountCurrencyStep?.autoDebitFacility ?? false
};
}