WEB-365 Utilizing Bulk Loan Reassignment does not work at all
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user