Li Jun
2022-04-08 ac719375874fd50fad5a11f8e04ac3329081bd0b
1
2
3
4
5
6
7
8
9
10
11
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>For_contract_loaner_only_active_contract</fullName>
    <active>false</active>
    <errorConditionFormula>RecordTypeId  &lt;&gt; &quot;01210000000RHIn&quot;  &amp;&amp; 
ISBLANK(Old_Rental_Apply__c) &amp;&amp;
(AND(RA_Status__c &lt;&gt; &apos;已出库&apos;, Text(Status__c) &lt;&gt; &apos;删除&apos;,  Text(Status__c) &lt;&gt; &apos;取消&apos;,
ISPICKVAL(demo_purpose2__c, &quot;保修合同用户维修代用&quot;), 
ISBLANK(Repair__r.Maintenance_Contract__r.Name)))</errorConditionFormula>
    <errorMessage>只有维修合同内的修理,可以申请维修合同代用品</errorMessage>
</ValidationRule>