| <?xml version="1.0" encoding="UTF-8"?> | 
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>repair_can_not_Shipment</fullName> | 
|     <active>true</active> | 
|     <description>From 备品Set</description> | 
|     <errorConditionFormula>DataMigration_Flag__c == false | 
| && | 
| /*  修理中 */ | 
| Asset__r.Last_Reserve_RAES_Detail__c == Id | 
| && OR(Asset_situation_F__c == '修理草案中', Asset_situation_F__c == '修理中', Asset_situation_F__c == '还没归还') | 
| /* 不能出库点检 */ | 
| && ISCHANGED(Inspection_result__c) && TEXT(Inspection_result__c) = 'OK'</errorConditionFormula> | 
|     <errorDisplayField>Inspection_result__c</errorDisplayField> | 
|     <errorMessage>修理中的备品不能出库</errorMessage> | 
| </ValidationRule> |