WEB-365 Utilizing Bulk Loan Reassignment does not work at all

This commit is contained in:
JaySoni1
2025-11-04 01:37:14 +05:30
parent 59b4739524
commit a6850f9033
2 changed files with 11 additions and 5 deletions
@@ -106,7 +106,9 @@
<tr *ngFor="let loans of groups.loans">
<td>
<mat-checkbox>{{ loans.productName }}({{ loans.accountNo }})</mat-checkbox>
<mat-checkbox (change)="getLoans($event, loans.id)"
>{{ loans.productName }}({{ loans.accountNo }})</mat-checkbox
>
</td>
</tr>
</table>
@@ -107,10 +107,14 @@ export class BulkLoanReassignmnetComponent implements OnInit {
* @param officerId Office Id.
*/
getFromOfficers(officerId: any) {
this.toLoanOfficers = this.fromLoanOfficers.filter((officer: any) => officer.id !== officerId);
this.organizationSevice.getOfficerTemplate(officerId, this.officeTemplate.id).subscribe((response: any) => {
this.officerTemplate = response;
});
this.toLoanOfficers = this.fromLoanOfficers?.filter((officer: any) => officer.id !== officerId) || [];
if (officerId && this.officeTemplate && this.officeTemplate.id) {
this.organizationSevice.getOfficerTemplate(officerId, this.officeTemplate.id).subscribe((response: any) => {
this.officerTemplate = response;
});
} else {
this.officerTemplate = undefined;
}
}
/**