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"> <tr *ngFor="let loans of groups.loans">
<td> <td>
<mat-checkbox>{{ loans.productName }}({{ loans.accountNo }})</mat-checkbox> <mat-checkbox (change)="getLoans($event, loans.id)"
>{{ loans.productName }}({{ loans.accountNo }})</mat-checkbox
>
</td> </td>
</tr> </tr>
</table> </table>
@@ -107,10 +107,14 @@ export class BulkLoanReassignmnetComponent implements OnInit {
* @param officerId Office Id. * @param officerId Office Id.
*/ */
getFromOfficers(officerId: any) { getFromOfficers(officerId: any) {
this.toLoanOfficers = this.fromLoanOfficers.filter((officer: any) => officer.id !== officerId); this.toLoanOfficers = this.fromLoanOfficers?.filter((officer: any) => officer.id !== officerId) || [];
this.organizationSevice.getOfficerTemplate(officerId, this.officeTemplate.id).subscribe((response: any) => { if (officerId && this.officeTemplate && this.officeTemplate.id) {
this.officerTemplate = response; this.organizationSevice.getOfficerTemplate(officerId, this.officeTemplate.id).subscribe((response: any) => {
}); this.officerTemplate = response;
});
} else {
this.officerTemplate = undefined;
}
} }
/** /**