添加仅针对矿山下组织下的逻辑
This commit is contained in:
parent
32ee5602e9
commit
a15bdb2293
|
@ -7,6 +7,7 @@ import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
|
|||
import kd.bos.entity.plugin.AddValidatorsEventArgs;
|
||||
import kd.bos.entity.plugin.PreparePropertysEventArgs;
|
||||
import kd.bos.entity.validate.AbstractValidator;
|
||||
import zcgj.zcdev.zcdev.fs.utils.OrgCheckUtils;
|
||||
|
||||
/*
|
||||
对公报销单提交校验插件:校验往来单位与开票公司是否一致,不一致需填写特殊说明
|
||||
|
@ -34,6 +35,11 @@ public class PublicReimburPayeriOp extends AbstractOperationServicePlugIn {
|
|||
ExtendedDataEntity[] extendedDataEntities = this.getDataEntities();
|
||||
for (ExtendedDataEntity extendedDataEntity : extendedDataEntities) {
|
||||
DynamicObject dataEntity = extendedDataEntity.getDataEntity();
|
||||
DynamicObject costCompany = dataEntity.getDynamicObject("costcompany");//费用承担公司
|
||||
if (costCompany != null) {
|
||||
Long companyId = costCompany.getLong("id");
|
||||
if (OrgCheckUtils.isKS(companyId)) {
|
||||
//仅针对矿山下组织下的逻辑
|
||||
DynamicObjectCollection invoiceEntryCollection = dataEntity.getDynamicObjectCollection("invoiceentry");//发票信息
|
||||
if (invoiceEntryCollection.size() > 0) {
|
||||
DynamicObject billPayerId = dataEntity.getDynamicObject("billpayerid");//往来单位
|
||||
|
@ -54,4 +60,6 @@ public class PublicReimburPayeriOp extends AbstractOperationServicePlugIn {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue