<?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>修理中的备品不能出库</description> 
 | 
    <errorConditionFormula>Asset__r.Last_Reserve_TAES_Detail__c == Id 
 | 
&& OR(Asset__r.Asset_situation__c == '修理草案中', Asset__r.Asset_situation__c == '修理中', Asset__r.Asset_situation__c == '还没归还') 
 | 
&& ISCHANGED(Inspection_result__c) && TEXT(Inspection_result__c) = 'OK'</errorConditionFormula> 
 | 
    <errorDisplayField>Inspection_result__c</errorDisplayField> 
 | 
    <errorMessage>修理中的备品不能出库</errorMessage> 
 | 
</ValidationRule> 
 |