Li Jun
2022-05-10 51fb56f3f5b0dc96d7f93a71f9b61263e303243f
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>New_FromRental_Apply_AccountEquals</fullName>
    <active>true</active>
    <description>从备品借出申请创建报告书时,检查报告书中的战略科室是否与借出备品申请中的战略科室一致</description>
    <errorConditionFormula>(isnew()|| ISCHANGED(Department_Class_Ref__c)|| ISCHANGED( Loaner_request_no1__c ) )
&amp;&amp;Not(ISBLANK(Loaner_request_no1__c))
&amp;&amp;Not(ISBLANK(Loaner_request_no1__r.Strategic_dept__c))
&amp;&amp; (Loaner_request_no1__r.Strategic_dept__c!= Department_Class_Ref__c)&amp;&amp; !$User.Batch_User__c</errorConditionFormula>
    <errorDisplayField>Department_Class_Ref__c</errorDisplayField>
    <errorMessage>请检查报告书中的战略科室是否与备品借出申请中的战略科室一致</errorMessage>
</ValidationRule>