binxie
2024-01-22 102afa21c115e8c8b9333a326c3d1af08fe76faf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>HospitalOppCheck</fullName>
    <active>true</active>
    <description>医院名对应科室的询价检查
0708跳过管理员</description>
    <errorConditionFormula>AND($User.Batch_User__c ==FALSE,NOT(ISBLANK(Opp_Name_Search__c)),
    OR(Hospital_Name__r.Department_Class__c != Opp_Name_Search__r.Department_Class__c,
       Opp_Name_Search__r.StageName__c = &quot;完毕&quot;,
       Opp_Name_Search__r.StageName__c = &quot;失单&quot;,
       Opp_Name_Search__r.StageName__c = &quot;取消&quot;
    )
)</errorConditionFormula>
    <errorDisplayField>Opp_Name_Search__c</errorDisplayField>
    <errorMessage>不是医院名科室下的询价或询价已经关闭</errorMessage>
</ValidationRule>