{{ "MY_COMPLAINT" | translate }}
@for (complaint of complaintRequests; track complaint.id; let i = $index) {
{{i + 1}}. {{ complaint?.title }}
{{ "COMPLAINT_NO" | translate }} {{ complaint?.complaintNo }}
{{ "PRIORITY" | translate }} {{ (complaint?.priority ?? 0) | ComplaintPriority | translate }}
{{ "STATUS" | translate }} {{ (complaint?.status ?? 0) | ComplaintStatus | translate }}
{{ "COMPLAINT_DATE" | translate }} {{ complaint?.complaintDate | utcToLocalTime : "shortDate" }}
@if (expandedIndex === i) {
{{ "DESCRIPTION" | translate }}
@if (complaint.complaintActions && complaint.complaintActions.length > 0) {
@for (item of complaint.complaintActions; track $index) {
Action #{{ $index + 1 }}
{{ item.actionTitle }}
{{ item.status | ComplaintActionStatus | translate }}
{{ item.actionDate | utcToLocalTime : "shortDate" }}
@if(item.dueDate && item.dueDate.toString() !== '0001-01-01T00:00:00.000Z') {
{{ item.dueDate | utcToLocalTime : "shortDate" }}
} @if(item.completedDate) {
{{ item.completedDate | utcToLocalTime : "shortDate" }}
}
@if (item.status !== 0) { } @if (item.status !== 1) { } @if (item.status !== 2) { } @if (item.status !== 3) { } @if (item.status !== 4) { } @if (item.status !== 5) { } @if (item.status !== 6) { }
}
} @if (complaint.complaintInvestigations && complaint.complaintInvestigations.length > 0) {
@for (item of complaint.complaintInvestigations; track item) {
Investigations #{{ $index + 1 }}
{{ item.status | ComplaintStatus | translate }}
{{ item.investigationDate | utcToLocalTime : "shortDate" }}
{{ (item.actionRequired ? "YES" : "NO") | translate }}
@if(item.followUpDate) {
{{ item.followUpDate | utcToLocalTime : "shortDate" }}
}
}
}
}
} @if (complaintRequests.length === 0) {
{{ "NO_DATA_FOUND" | translate }}
}