|
|
@@ -482,16 +482,14 @@ open class ProductionScheduleService( |
|
|
|
|
|
|
|
|
return MessageResponse( |
|
|
return MessageResponse( |
|
|
id = request.id.toLong(), |
|
|
id = request.id.toLong(), |
|
|
//message = "Successfully created Job Orders for all production schedule lines (Parent ID: ${request.id}).", |
|
|
|
|
|
message = if (jobOrderCount == 0) |
|
|
message = if (jobOrderCount == 0) |
|
|
"沒有建立新工單(可能因為成品已有生產中的工單)." |
|
|
"沒有建立新工單(可能因為成品已有生產中的工單)." |
|
|
else |
|
|
else |
|
|
"成功建立 $jobOrderCount 張工單!", |
|
|
"成功建立 $jobOrderCount 張工單!", |
|
|
name = "", |
|
|
name = "", |
|
|
code = "", |
|
|
|
|
|
type = "", |
|
|
|
|
|
|
|
|
code = jobOrderCount.toString(), |
|
|
|
|
|
type = "psJobOrders", |
|
|
errorPosition = null |
|
|
errorPosition = null |
|
|
// entity = mapOf("prodScheduleLines" to latestDetail?.prodScheduleLines) |
|
|
|
|
|
) |
|
|
) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|