{{ "SUPPLIER_AUDIT_DETAILS" | translate }} @if(data.isViewOnly){ cancel }
-- {{ "NONE" | translate }} -- @for (user of userStore.users(); track user) { {{ user.firstName }} {{ user.lastName }} } @if(supplierAuditForm.get('auditorId')?.touched && supplierAuditForm.get('auditorId')?.errors){
@if(supplierAuditForm.get('auditorId')?.hasError('required')){
{{ "AUDITOR_IS_REQUIRED" | translate }}
}
}
-- {{ "NONE" | translate }} -- @for (auditType of auditTypeList; track auditType) { {{ auditType.label | translate }} } @if(supplierAuditForm.get('auditType')?.touched && supplierAuditForm.get('auditType')?.errors){
@if(supplierAuditForm.get('auditType')?.hasError('required')){
{{ "AUDIT_TYPE_IS_REQUIRED" | translate }}
}
}
@if(supplierAuditForm.get('auditDate')?.touched && supplierAuditForm.get('auditDate')?.errors){
@if(supplierAuditForm.get('auditDate')?.hasError('required')){
{{ "AUDIT_DATE_IS_REQUIRED" | translate }}
}
}
@if(!data.isViewOnly){ @if(supplierAuditForm.get('score')?.touched && supplierAuditForm.get('score')?.errors){
@if(supplierAuditForm.get('score')?.hasError('required')){
{{ "SCORE_IS_REQUIRED" | translate }}
} @if(supplierAuditForm.get('score')?.hasError('min') || supplierAuditForm.get('score')?.hasError('max')) {
{{ "SCORE_MUST_BE_BETWEEN_0_AND_100" | translate }}
}
} }
-- {{ "NONE" | translate }} -- @for (supplierResult of supplierResultList; track supplierResult) { {{ supplierResult.label | translate }} } @if(supplierAuditForm.get('result')?.touched && supplierAuditForm.get('result')?.errors){
@if(supplierAuditForm.get('result')?.hasError('required')){
{{ "RESULT_IS_REQUIRED" | translate }}
}
} @if (supplierAuditForm.get('result')?.value === 'Conditional') {
@if(supplierAuditForm.get('otherResult')?.touched && supplierAuditForm.get('otherResult')?.errors){
@if(supplierAuditForm.get('otherResult')?.hasError('required')){
{{ "RESULT_IS_REQUIRED" | translate }}
}
}
}
@if(!data.isViewOnly){ @if(supplierAuditForm.get('findings')?.touched && supplierAuditForm.get('findings')?.errors){
@if(supplierAuditForm.get('findings')?.hasError('required')){
{{ "FINDINGS_IS_REQUIRED" | translate }}
}
} }
@if(!data.isViewOnly){
}
@if(!data.isViewOnly){
}