章政 8 tahun lalu
induk
melakukan
3fac2b040b
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      UAS-MES/FunctionCode/Special/Special_CancelCollection.cs

+ 1 - 1
UAS-MES/FunctionCode/Special/Special_CancelCollection.cs

@@ -72,7 +72,7 @@ namespace UAS_MES.Special
                             barcode.Add(dt.Rows[i]["cm_barcode"].ToString());
                         }
                         sql.Clear();
-                        sql.Append("update makeserial set ms_nextmacode='' where ms_makecode=:barcode and ms_id=(select max(ms_id) from makeserial where ms_sncode=:barcode1)");
+                        sql.Append("update makeserial set ms_nextmacode='' where ms_sncode=:barcode and ms_id=(select max(ms_id) from makeserial where ms_sncode=:barcode1)");
                         dh.BatchInsert(sql.GetString(), new string[] { "barcode", "barcode1" }, barcode.ToArray(), barcode.ToArray());
                         sqls.Add("delete from craftmaterial where cm_sncode='" + sn_code.Text + "' and cm_makecode='" + ms_makecode + "'");
                     }