| | |
| | | ContainerHelper.deleteCntrItem(cntrCode); |
| | | } |
| | | } |
| | | |
| | | if (wst.S_TYPE == "出库任务") |
| | | { |
| | | var child = WMSHelper.getOutstockListChild(wst.S_OP_DEF_CODE, cst.S_DATA); |
| | | |
| | | var cntrCodeList = cst.S_CNTR_CODE.Split(',').ToList(); |
| | | // 更新出库数量 |
| | | float qty = 0; |
| | | for (int i = 0; i < cntrCodeList.Count; i++) |
| | | { |
| | | var cntrItemRels = ContainerHelper.GetCntrItemRel(cntrCodeList[i]); |
| | | foreach (var cntrItemRel in cntrItemRels) |
| | | { |
| | | qty -= cntrItemRel.F_QTY; |
| | | } |
| | | } |
| | | child.PRE_COMPLETED_QTY = child.PRE_COMPLETED_QTY + qty; |
| | | WMSHelper.updateOutStockListChild(child); |
| | | } |
| | | } |
| | | } |
| | | } |