其他出库申请物料带出价格 判空

This commit is contained in:
tanfengling@x-ri.com 2025-10-30 10:52:24 +08:00
parent e6041130dc
commit d8729b8eef
1 changed files with 18 additions and 14 deletions

View File

@ -105,7 +105,9 @@ public class OtherOutApplyBillPlugin extends AbstractBillPlugIn implements Befor
if (StringUtils.equals("tqq9_materiel", name)) { if (StringUtils.equals("tqq9_materiel", name)) {
ChangeData[] changeSet = e.getChangeSet(); ChangeData[] changeSet = e.getChangeSet();
DynamicObject newValue = (DynamicObject) changeSet[0].getNewValue();//物料库存信息 DynamicObject newValue = (DynamicObject) changeSet[0].getNewValue();//物料库存信息
if(newValue != null){
DynamicObject masterid = newValue.getDynamicObject("masterid");//物料 DynamicObject masterid = newValue.getDynamicObject("masterid");//物料
if(masterid != null){
QFilter purinbillF = new QFilter("billentry.material.id", QCP.equals, newValue.getLong("id")); QFilter purinbillF = new QFilter("billentry.material.id", QCP.equals, newValue.getLong("id"));
purinbillF = purinbillF.and("billstatus", QCP.equals, "C"); purinbillF = purinbillF.and("billstatus", QCP.equals, "C");
//price //price
@ -123,6 +125,8 @@ public class OtherOutApplyBillPlugin extends AbstractBillPlugIn implements Befor
} }
} }
} }
}
}
//批号带出批次可用量 //批号带出批次可用量
if (StringUtils.equals("tqq9_lot", name)) { if (StringUtils.equals("tqq9_lot", name)) {
ChangeData changeData = e.getChangeSet()[0]; ChangeData changeData = e.getChangeSet()[0];