feat: current account details step and client general tab updates

This commit is contained in:
Nitesh Yadav
2026-04-29 15:10:26 +05:30
parent 0d3d83799b
commit f2a5035c8b
5 changed files with 147 additions and 25 deletions
@@ -472,10 +472,18 @@ export class CurrentAccountDetailsStepComponent implements OnInit {
if (this.introducerId) {
value.introducerId = this.introducerId;
value.introducerName = this.introducerName;
value.introducerCif = this.introducerCif;
value.introducerCifNumber = this.introducerCif;
}
value.isNonIndividualClient = this.isNonIndividualClient;
// Product classification fields
if (this.selectedAccountType) {
value.accountType = this.selectedAccountType;
}
if (this.selectedCustomerSegment) {
value.customerSegment = this.selectedCustomerSegment;
}
// accountStatus applies to all client types
value.accountStatus = this.selectedAccountStatus || null;
if (this.selectedAccountStatus === 'INDIVIDUAL_MALE' && this.selectedSpecialCategory)
@@ -487,8 +495,8 @@ export class CurrentAccountDetailsStepComponent implements OnInit {
value.jointHolders = [
{
clientId: this.primaryClientId,
clientName: this.primaryClientName,
clientCif: this.primaryClientCif,
displayName: this.primaryClientName,
cifNumber: this.primaryClientCif,
sharePercentage: this.primaryHolderShare,
isMandatory: true,
isPrimary: true,
@@ -497,8 +505,8 @@ export class CurrentAccountDetailsStepComponent implements OnInit {
},
...this.jointHolders.map((h) => ({
clientId: h.clientId,
clientName: h.clientName,
clientCif: h.clientCif,
displayName: h.clientName,
cifNumber: h.clientCif,
sharePercentage: h.sharePercentage,
isMandatory: h.isMandatory,
isPrimary: false,
@@ -510,9 +518,9 @@ export class CurrentAccountDetailsStepComponent implements OnInit {
if (this.selectedAccountStatus === 'MINOR') {
value.guardianClientId = this.guardianClientId;
value.guardianName = this.guardianName;
value.guardianCif = this.guardianCif;
value.guardianCifNumber = this.guardianCif;
value.guardianRelationship = this.guardianRelationship;
value.minorDob = this.minorDob ? this.dateUtils.formatDate(this.minorDob, 'yyyy-MM-dd') : null;
value.minorDateOfBirth = this.minorDob ? this.dateUtils.formatDate(this.minorDob, 'yyyy-MM-dd') : null;
}
// non-individual: partners are a separate dataset