Explorar o código

拆箱时箱状态为未封箱

shim %!s(int64=8) %!d(string=hai) anos
pai
achega
b1c5352b1a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      UAS-MES/FunctionCode/Packing/Packing_CartonSplit.cs

+ 1 - 1
UAS-MES/FunctionCode/Packing/Packing_CartonSplit.cs

@@ -116,7 +116,7 @@ namespace UAS_MES.Packing
                     //更新序列号
                     dh.ExecuteSql("update makeserial set ms_outboxcode='' , ms_nextstepcode=ms_stepcode where ms_id='" + ms_id + "'", "update");
                     //更新箱内当前数量
-                    dh.ExecuteSql("update package set pa_currentqty=pa_currentqty-1 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
+                    dh.ExecuteSql("update package set pa_currentqty=pa_currentqty-1,pa_status=0 where pa_outboxcode='" + pa_outboxcode.Text + "'", "update");
                     //记录拆箱操作日志
                     LogicHandler.DoCommandLog(Tag.ToString(), User.UserCode, packtype.Text, User.UserLineCode, User.UserSourceCode, "卡通箱拆箱", "卡通箱拆箱成功,序列号:" + sncode.Text + ",箱号:" + pa_outboxcode.Text, sncode.Text, "");
                     //提示拆箱成功