修正完工入库时销售订单行没值时转换成数值错误
This commit is contained in:
parent
75b8f9ac93
commit
d5636d5971
@ -427,7 +427,11 @@ public class ShopOrderStatisticTransController {
|
||||
jsonObject.put("ERFMG", completeTransaction.getSubQty()); // 以录入项单位表示的数量
|
||||
jsonObject.put("ERFME", completeTransaction.getSubUom()); // 录入单位
|
||||
jsonObject.put("MAT_KDAUF", completeTransaction.getSoNo()); // 评估销售定单库存的销售定单号
|
||||
jsonObject.put("MAT_KDPOS", Integer.valueOf(completeTransaction.getSoLineNo())); // 评估销售订单库存的销售订单项目
|
||||
if(StringUtils.isNotEmpty(completeTransaction.getSoLineNo())){
|
||||
jsonObject.put("MAT_KDPOS", Integer.valueOf(completeTransaction.getSoLineNo())); // 评估销售订单库存的销售订单项目
|
||||
}else{
|
||||
jsonObject.put("MAT_KDPOS", null); // 评估销售订单库存的销售订单项目
|
||||
}
|
||||
jsonObject.put("UMWRK", ""); // 收货工厂/发货工厂
|
||||
jsonObject.put("UMLGO", ""); // 收货/发货库存地点
|
||||
jsonObject.put("UMCHA", ""); // 收货/发货批量
|
||||
@ -470,7 +474,7 @@ public class ShopOrderStatisticTransController {
|
||||
}
|
||||
}
|
||||
if ("E".equals(invokeResponse.getResult())) {
|
||||
return R.failed(invokeResponse.getMessageContent());
|
||||
return R.failed("SAP错误:"+invokeResponse.getMessageContent());
|
||||
} else {
|
||||
return R.ok();
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user