|
|
|
@ -1066,6 +1066,7 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
@DS("#header.poolName")
|
|
|
|
|
public void OutboundPostingSAPfc(List<OdsProcureOutOrder> orderList) {
|
|
|
|
|
// * 退料的移动类型为 262
|
|
|
|
|
// * 领料的移动类型为 261
|
|
|
|
@ -1088,12 +1089,16 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
sapBackflushMPQuery.setMatnr(odsProcureOutOrder.getMaterialCode());//物料号
|
|
|
|
|
sapBackflushMPQuery.setQuantity(odsProcureOutOrder.getOutNumber().toString()); //数量
|
|
|
|
|
sapBackflushMPQuery.setMeins(odsProcureOutOrder.getUnit()); //基本计量单位
|
|
|
|
|
sapBackflushMPQuery.setBatch(odsProcureOutOrder.getUserDefined2()); //批号
|
|
|
|
|
sapBackflushMPQuery.setBatch(odsProcureOutOrder.getUserDefined1()); //批量
|
|
|
|
|
// sapBackflushMPQuery.setBatch(odsProcureOutOrder.getUserDefined1());
|
|
|
|
|
sapMaterialPostingFCList.add(sapBackflushMPQuery);
|
|
|
|
|
orderList2FC.add(odsProcureOutOrder);
|
|
|
|
|
}
|
|
|
|
|
if (sapMaterialPostingFCList.size() > 0) {
|
|
|
|
|
//反冲过账
|
|
|
|
|
for (SapBackflushMPQuery sapBackflushMPQuery:sapMaterialPostingFCList){
|
|
|
|
|
System.out.println(sapBackflushMPQuery.toString());
|
|
|
|
|
}
|
|
|
|
|
R result2 = remoteSapService.sapBackflushMP(sapMaterialPostingFCList);//x
|
|
|
|
|
int code = result2.getCode();
|
|
|
|
|
OdsProcureOutOrder order = new OdsProcureOutOrder();
|
|
|
|
@ -2936,8 +2941,8 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
//暂收状态的--其中备用字段1是用来保存暂收的凭证的,,
|
|
|
|
|
Map paramMap=new HashMap<>();
|
|
|
|
|
List<Map> mapList = new ArrayList<>();
|
|
|
|
|
paramMap.put("S_MBLNR",wmsRawOrderIn.getUserDefined1());
|
|
|
|
|
paramMap.put("S_MJAHR",wmsRawOrderIn.getUserDefined2());
|
|
|
|
|
paramMap.put("S_MBLNR",wmsRawOrderIn.getUserDefined1());//参考凭证的凭证号
|
|
|
|
|
paramMap.put("S_MJAHR",wmsRawOrderIn.getUserDefined2());//参考凭证会计年度
|
|
|
|
|
paramMap.put("S_MATNR",wmsRawOrderIn.getMaterialCode());
|
|
|
|
|
paramMap.put("incomeBatchNo",wmsRawOrderIn.getIncomeBatchNo()); //批次
|
|
|
|
|
paramMap.put("ebelp",wmsRawOrderIn.getPoLine());
|
|
|
|
@ -3003,7 +3008,7 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
String result="操作成功";
|
|
|
|
|
for (OdsProcureOrder order: odsProcureOrders){
|
|
|
|
|
OdsProcureOrder odsProcureOrder = order;
|
|
|
|
|
WmsRawOrderIn wmsRawOrderIn= wmsRawOrderInMapper.selectWmsRawOrderInByRawOrderInIdTWO(odsProcureOrder.getID());
|
|
|
|
|
WmsRawOrderIn wmsRawOrderIn= wmsRawOrderInMapper.selectWmsRawOrderInByRawOrderInIdThress(odsProcureOrder.getID());
|
|
|
|
|
//这个地方
|
|
|
|
|
Map paramMap=new HashMap<>();
|
|
|
|
|
List<Map> mapList = new ArrayList<>();
|
|
|
|
@ -3014,7 +3019,7 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
paramMap.put("ebelp",wmsRawOrderIn.getPoLine());
|
|
|
|
|
paramMap.put("poNo",wmsRawOrderIn.getPoNo());
|
|
|
|
|
mapList.add(paramMap);
|
|
|
|
|
R result2 = remoteSapService.sap105temporarilyCollected(mapList);
|
|
|
|
|
R result2 = remoteSapService.handleUpdateSAP105(mapList);
|
|
|
|
|
if (result2.getCode()==200){
|
|
|
|
|
Map map = new HashMap();
|
|
|
|
|
map = (Map) result2.getData();
|
|
|
|
|