Skip to content

Web-110: Fix Gsim creation to include all selected clients #2410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ export class CreateGsimAccountComponent {
}

/** Set Body for each client selected */
setData(client: any): any {
setData(client: any, isParentAccount: any): any {
const locale = this.settingsService.language.code;
const dateFormat = this.settingsService.dateFormat;
const monthDayFormat = 'dd MMMM';
Expand All @@ -130,7 +130,7 @@ export class CreateGsimAccountComponent {
})),
clientId: client.id,
isGSIM: true,
isParentAccount: true,
isParentAccount: isParentAccount,
submittedOnDate: this.dateUtils.formatDate(this.savingsAccount.submittedOnDate, dateFormat),
dateFormat,
monthDayFormat,
Expand All @@ -146,7 +146,10 @@ export class CreateGsimAccountComponent {
const requestData = [];
const memberSelected = this.selectedMembers.selectedMembers;
for (let index = 0; index < 1; index++) {
requestData.push(this.setData(memberSelected[index]));
requestData.push(this.setData(memberSelected[index], true));
}
for (let index = 1; index < memberSelected.length; index++) {
requestData.push(this.setData(memberSelected[index], false));
}
return requestData;
}
Expand Down