update 修改生产补料、生产领料、调拨出库、销售出库的事件名

This commit is contained in:
18110972313 2025-05-13 20:50:43 +08:00
parent 66b59eaa8e
commit b333d2ba03

View File

@ -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<String,Object> 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);