Li Jun
2022-04-27 f90c63155656928b86f1ce1d91a134de3d12d2b9
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>GZPaicha_When_Repair_CheckFixture_True</fullName>
    <active>false</active>
    <description>update lxy 20200819 【phase4上线课题60】-紧急-取消满足故障排查条件时仅能以故障排查目的借用的验证规则
当前当满足故障排查的条件时,从修理画面新建备品申请时默认故障排查且不能修改为其它目的,因为满足故障排查条件时也会有借用一般维修和保修合同的情况,所以需要取消这个验证规则。可以设置默认故障排查,但也能改为其它的目的。</description>
    <errorConditionFormula>OR(ISNEW(), RA_Status__c == &apos;草案中&apos;)
&amp;&amp; NOT(ISPICKVAL(demo_purpose2__c, &apos;故障排查&apos;))
&amp;&amp; Repair__r.IfCheckFixture__c</errorConditionFormula>
    <errorMessage>必须选择故障排查目的</errorMessage>
</ValidationRule>