<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>Only_Can_Select_Same_asset_location</fullName> 
 | 
    <active>false</active> 
 | 
    <description>只能分配和申请书相同备品存放地的保有设备</description> 
 | 
    <errorConditionFormula>LEFT($User.ProfileId, 15) = LEFT($Label.ProfileId_EquipmentCenter, 15) 
 | 
&& ISCHANGED(Asset__c) 
 | 
&& NOT( ISBLANK(Asset__c)) 
 | 
&& TEXT(TransferApply__r.From_Location__c)!= Internal_asset_location__c</errorConditionFormula> 
 | 
    <errorDisplayField>Asset__c</errorDisplayField> 
 | 
    <errorMessage>只能分配和申请书相同备品存放地的保有设备</errorMessage> 
 | 
</ValidationRule> 
 |