This commit is contained in:
xuhaihui 2025-10-11 14:17:30 +08:00
parent ea17708cde
commit f5b2c9a2d8
1 changed files with 4 additions and 1 deletions

View File

@ -39,6 +39,10 @@ public class MaterialInBillOrgSubmitValidatorOp extends AbstractOperationService
ExtendedDataEntity[] extendedDataEntities = this.getDataEntities();
for (ExtendedDataEntity extendedDataEntity : extendedDataEntities) {
DynamicObject ecma_MaterialInBill = extendedDataEntity.getDataEntity();
int zcgj_attachmentcount = ecma_MaterialInBill.getInt("zcgj_attachmentcount"); //比价附件数
if (zcgj_attachmentcount > 0) {
return;
}
DynamicObject fiaccountOrg = ecma_MaterialInBill.getDynamicObject("fiaccountorg");//财务记账组织
if (fiaccountOrg == null) {
return;
@ -63,7 +67,6 @@ public class MaterialInBillOrgSubmitValidatorOp extends AbstractOperationService
}
}
}
int zcgj_attachmentcount = ecma_MaterialInBill.getInt("zcgj_attachmentcount"); //比价附件数
if (zcgj_attachmentcount == 0 && isPrice) {
this.addFatalErrorMessage(extendedDataEntity, "入库单价大于2000需要上传比价附件");
}