improvement: Some improvements done. some bugs fixed.
This commit is contained in:
@@ -785,7 +785,8 @@ export class TreatmentsService {
|
||||
throw new AppException(ErrorCode.TREATMENT_TOOTH_UNKNOWN_DETAIL, HttpStatus.BAD_REQUEST);
|
||||
}
|
||||
const teeth = normalizeTeeth(detail.teeth);
|
||||
if (!teeth.includes(row.tooth)) {
|
||||
const isArchSentinel = row.tooth === 'UA' || row.tooth === 'LA';
|
||||
if (!isArchSentinel && !teeth.includes(row.tooth)) {
|
||||
throw new AppException(ErrorCode.TREATMENT_TOOTH_NOT_ON_DETAIL, HttpStatus.BAD_REQUEST);
|
||||
}
|
||||
this.prosthesisCatalog.assertKnownProsthesisType(row.prosthesisTypeCode);
|
||||
|
||||
Reference in New Issue
Block a user