fix: 리워크 마스터 전량접수 시 completed로 변경 (in_progress → completed)
This commit is contained in:
@@ -1880,10 +1880,10 @@ export const acceptProcess = async (req: AuthenticatedRequest, res: Response) =>
|
||||
);
|
||||
} else {
|
||||
newTotalInput = currentTotalInput; // 리워크는 기존 합계 유지
|
||||
// 리워크 카드: 전량 접수 시 status를 in_progress로 변경 (추가 접수 방지)
|
||||
// 리워크 카드: 전량 접수 시 status를 completed로 변경 (추가 접수 방지 + 탭에서 숨김)
|
||||
if (qty >= reworkInputQty) {
|
||||
await client.query(
|
||||
`UPDATE work_order_process SET status = 'in_progress', updated_date = NOW()
|
||||
`UPDATE work_order_process SET status = 'completed', updated_date = NOW()
|
||||
WHERE id = $1 AND company_code = $2`,
|
||||
[work_order_process_id, companyCode]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user