出库单优化仓库字段清空逻辑

This commit is contained in:
xuhaihui 2025-09-04 16:23:18 +08:00
parent 37cf044f44
commit c984723eab
1 changed files with 4 additions and 1 deletions

View File

@ -73,7 +73,10 @@ public class MaterialOutBillPlugin extends AbstractBillPlugIn implements BeforeF
Object newValue = changeData.getNewValue();//新值 Object newValue = changeData.getNewValue();//新值
if (newValue != null) { if (newValue != null) {
DynamicObject warehouse = (DynamicObject) newValue; DynamicObject warehouse = (DynamicObject) newValue;
this.getModel().setValue("zcgj_fiorg", warehouse.get("org")); this.getModel().setValue("zcgj_fiorg", warehouse.get("org"));//核算组织
}else {
this.getModel().setValue("zcgj_fiorg", null);//清空核算组织字段
this.getModel().setValue("project", null);//清空项目字段
} }
} else if ("zcgj_fiorg".equals(key)) { } else if ("zcgj_fiorg".equals(key)) {
//核算组织 //核算组织