付煜
2022-03-28 a1a28f05f9560cd6a265caef72e0ca07977510ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Cannot_Change_CancelANDCancelR</fullName>
    <active>true</active>
    <description>取消理由和取消分配Flag设置完了后,不能修改。</description>
    <errorConditionFormula>PRIORVALUE(Cancel_Select__c) &amp;&amp; !ISBLANK(PRIORVALUE(Cancel_Reason__c))
&amp;&amp;
(
ISCHANGED(Cancel_Select__c)
||
if(OneToOneAccessory__c,AND(ISCHANGED(Cancel_Reason__c),PRIORVALUE(Cancel_Reason__c ) == &apos;出库前检查NG&apos;),ISCHANGED(Cancel_Reason__c))
)</errorConditionFormula>
    <errorDisplayField>CDS_complete__c</errorDisplayField>
    <errorMessage>取消理由和取消分配Flag设置完了后,不能修改。</errorMessage>
</ValidationRule>