WEB-298 Allow customer to provide write-off reasons

This commit is contained in:
JaySoni1
2025-11-04 16:32:18 +05:30
parent 28beb149a2
commit b32dfe21e9
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);
}