Merge pull request #2756 from JaySoni1/WEB-298-allow-customer-to-provide-write-off-reasons

WEB-298 Allow customer to provide write-off reasons
This commit is contained in:
Jose Alberto Hernandez
2025-11-04 09:11:21 -05:00
committed by GitHub
2 changed files with 11 additions and 0 deletions
@@ -131,6 +131,11 @@
<span *ngIf="!loanDetails.externalId"> {{ 'labels.inputs.Not Available' | translate }} </span>
</ng-container>
<ng-container *ngIf="ele.key === 'Write-off Reason'">
<span *ngIf="ele.value">{{ ele.value }}</span>
<span *ngIf="!ele.value">{{ 'labels.inputs.Not Available' | translate }}</span>
</ng-container>
<ng-container
*ngIf="ele.key === 'Proposed Amount' || ele.key === 'Approved Amount' || ele.key === 'Disburse Amount'"
>
@@ -198,6 +198,12 @@ export class GeneralTabComponent implements OnInit {
value: this.loanDetails.principal
}
];
if (this.loanDetails.writeOffReason) {
this.loanDetailsTableData.push({
key: 'Write-off Reason',
value: this.loanDetails.writeOffReason
});
}
this.detailsDataSource = new MatTableDataSource(this.loanDetailsTableData);
}