<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>Repair_SalesOfficeCode</fullName> 
 | 
    <active>true</active> 
 | 
    <errorConditionFormula>OR($User.Id<>'00510000005sEEM',$User.Id<>'00510000000gT2R') && Delivered_Product__r.Product2.CanRepairAccsessary__c = True && 
 | 
Isblank(CompanyCodeOfEquipment__c)  
 | 
&& Isblank(Delivered_Product__r.CompanyCodeOfEquipment__c) && TEXT(Status__c) = '草案中'</errorConditionFormula> 
 | 
    <errorDisplayField>SalesOfficeCode_selection__c</errorDisplayField> 
 | 
    <errorMessage>不能确定备品所属公司,请选择能确定备品所属公司的值</errorMessage> 
 | 
</ValidationRule> 
 |