|
|
|
@@ -471,9 +471,14 @@ open class ItemsService( |
|
|
|
isActive = check != null |
|
|
|
) // Create combined item |
|
|
|
} |
|
|
|
// Fetch qcType from items_qc_category_mapping table |
|
|
|
val qcCategoryMapping = itemsQcCategoryMappingRepository.findFirstByItemId(id) |
|
|
|
val qcType = qcCategoryMapping?.type |
|
|
|
|
|
|
|
val response = ItemWithQcResponse( |
|
|
|
item = item, |
|
|
|
qcChecks = qc |
|
|
|
qcChecks = qc, |
|
|
|
qcType = qcType |
|
|
|
) |
|
|
|
// TODO: Return with QC items |
|
|
|
return response |
|
|
|
|