其他出库申请物料带出价格 判空
This commit is contained in:
parent
e6041130dc
commit
d8729b8eef
|
|
@ -105,7 +105,9 @@ public class OtherOutApplyBillPlugin extends AbstractBillPlugIn implements Befor
|
|||
if (StringUtils.equals("tqq9_materiel", name)) {
|
||||
ChangeData[] changeSet = e.getChangeSet();
|
||||
DynamicObject newValue = (DynamicObject) changeSet[0].getNewValue();//物料库存信息
|
||||
if(newValue != null){
|
||||
DynamicObject masterid = newValue.getDynamicObject("masterid");//物料
|
||||
if(masterid != null){
|
||||
QFilter purinbillF = new QFilter("billentry.material.id", QCP.equals, newValue.getLong("id"));
|
||||
purinbillF = purinbillF.and("billstatus", QCP.equals, "C");
|
||||
//price
|
||||
|
|
@ -123,6 +125,8 @@ public class OtherOutApplyBillPlugin extends AbstractBillPlugIn implements Befor
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
//批号带出批次可用量
|
||||
if (StringUtils.equals("tqq9_lot", name)) {
|
||||
ChangeData changeData = e.getChangeSet()[0];
|
||||
|
|
|
|||
Loading…
Reference in New Issue