无备料领料-材料出库记录启源id和单号

This commit is contained in:
mzr 2025-10-21 16:12:47 +08:00
parent e3ce6d8831
commit 7b7fa5bb6e
1 changed files with 3 additions and 0 deletions

View File

@ -87,6 +87,7 @@ public class NoItemsDeliverMaterialRule implements IRule<PurchaseInVO> {
PurchaseInHeadVO head = inVO.getHead();
PurchaseInBodyVO[] bodys = inVO.getBodys();
String pkOrg = head.getPk_org();
String vbillcode = head.getVbillcode();
// 判断是否是精密铸造(C038)
if (!"null".equals(orgId) && orgId.equals(pkOrg)) {
Map<String, String> configParams = MyHelper.getConfigParams("jm-config", null);
@ -207,6 +208,8 @@ public class NoItemsDeliverMaterialRule implements IRule<PurchaseInVO> {
itemVO.setAttributeValue("nquotastnum", nshouldnum);// 定额用量
itemVO.setAttributeValue("nquotnum", nshouldnum);// 主定额用量
itemVO.setFsupplytype(1);// 供应方式 一般发料=0,定量发料=1
itemVO.setAttributeValue("vbdef34", vbillcode);// 폘都흙욋데데뵀
itemVO.setAttributeValue("vbdef35", body.getVbdef20());// 폘都흙욋데契ID
itemVO.setStatus(VOStatus.NEW);
itemVOS.add(itemVO);
// 调用无备料领料的标准业务方法