diff --git a/zi-wms-pda/src/main/java/com/cim/idm/service/Impl/InvoiceServiceImpl.java b/zi-wms-pda/src/main/java/com/cim/idm/service/Impl/InvoiceServiceImpl.java index 2e6cd02..74ed9fc 100644 --- a/zi-wms-pda/src/main/java/com/cim/idm/service/Impl/InvoiceServiceImpl.java +++ b/zi-wms-pda/src/main/java/com/cim/idm/service/Impl/InvoiceServiceImpl.java @@ -3036,13 +3036,22 @@ public class InvoiceServiceImpl implements InvoiceService { String billCode = ""; switch (shipRequestType) { case "NLCC" : //STO调拨出库 - + makeEventInfo.setEventName("CompletedShipRequestNLCC"); + makeEventInfo.setEventComment("CompletedShipRequestNLCC"); billCode=TransferStockOut_NLCC(shipRequestName, "SDK", eventUser,materialPackingKeyList,commitDate); untils.SaveUnDoInfo_ForSap(materialPackingKeyList, billCode, makeEventInfo); break; case "01"://生产领料 case "02"://生产补料 + if ("01".equals(shipRequestType)){ + makeEventInfo.setEventName("CompletedShipRequestLL"); + makeEventInfo.setEventComment("CompletedShipRequestLL"); + }else { + makeEventInfo.setEventName("CompletedShipRequestBL"); + makeEventInfo.setEventComment("CompletedShipRequestBL"); + } + // 判断是否是现场仓 String IsSql = "SELECT m.ERPRECEIVELOCATION,m.ERPLOCATION,m.ERPRECEIVEFACTORY FROM MATERIALSHIPREQUESTDETAIL m WHERE SHIPREQUESTNAME = :SHIPREQUESTNAME"; Map bpc=new HashMap<>(); @@ -3213,6 +3222,8 @@ public class InvoiceServiceImpl implements InvoiceService { case "ZLF6": case "ZLF7": case "ZLF8": + makeEventInfo.setEventName("CompletedShipRequestZL"); + makeEventInfo.setEventComment("CompletedShipRequestZL"); // billCode=toSAPService.saleStockOut_NEW(shipRequestName, "SDK", eventUser,materialPackingKeyList); billCode=saleStockOut_NEW(shipRequestName, "SDK", eventUser,materialPackingKeyList,commitDate); untils.SaveUnDoInfo_ForSap(materialPackingKeyList, billCode, makeEventInfo);