Browse Source

返工工单采集清除箱号

callm 4 days ago
parent
commit
81e8536c16
1 changed files with 1 additions and 1 deletions
  1. 1 1
      UAS_MES_YDCY/FunctionCode/Make/Make_GetReMakeSN.cs

+ 1 - 1
UAS_MES_YDCY/FunctionCode/Make/Make_GetReMakeSN.cs

@@ -250,7 +250,7 @@ namespace UAS_MES_NEW.Make
                                 //更新工单数量+1
                                 SQLS.Add("update make set ma_inqty=nvl(ma_inqty,0)+1 where ma_id='" + ma_id.Text + "'");
                                 //更新该序列号的所属工单为返工工单
-                                SQLS.Add("update makeserial set ms_nextmacode='" + ma_code.Text + "' where ms_id='" + Msid + "'");
+                                SQLS.Add("update makeserial set ms_outboxcode='',ms_nextmacode='" + ma_code.Text + "' where ms_id='" + Msid + "'");
                                 if (ms_outboxcode != "")
                                 {
                                     string pamothercode = dh.getFieldDataByCondition("package", "pa_mothercode", "pa_outboxcode='" + ms_outboxcode + "'").ToString();