This commit is contained in:
		
							parent
							
								
									ea17708cde
								
							
						
					
					
						commit
						f5b2c9a2d8
					
				| 
						 | 
				
			
			@ -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,需要上传比价附件!");
 | 
			
		||||
                    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue