| <?xml version="1.0" encoding="UTF-8"?> | 
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>Repair_Create_RAC_Rule</fullName> | 
|     <active>true</active> | 
|     <description>修理申请备品借出验证 | 
| update lxy 2020/11/23 去掉&& Repair__r.Status1__c== '草案中'</description> | 
|     <errorConditionFormula>ISNEW()  && (TEXT(demo_purpose2__c) == '保修用户' || TEXT(demo_purpose2__c) == '市场多年保修') | 
| && Repair__c != null && IsBlank(Repair__r.FSE_ApplyForRepair_Day__c)</errorConditionFormula> | 
|     <errorDisplayField>Combine_Pack__c</errorDisplayField> | 
|     <errorMessage>FSE申请修理后才可以申请备品</errorMessage> | 
| </ValidationRule> |