游畅
2022-04-22 64b3629116e6f3f5eb3debf9b451d100f4010fa5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Cannot_edit_after_contract</fullName>
    <active>false</active>
    <errorConditionFormula>$Profile.Id != &quot;00e10000000xno4&quot;   /* 张晶 */
&amp;&amp; $Profile.Id != &quot;00e10000000xnpM&quot;   /* FSE */
&amp;&amp; $Profile.Id != &quot;00e10000000Y3o5&quot;   /* 系统管理员 */
&amp;&amp; $Profile.Id != &quot;00e10000000dEQx&quot;   /* GPI_系统管理员 */
&amp;&amp; $Profile.Id != &quot;00e10000000dzzG&quot;   /* GPI_系统管理员New */
&amp;&amp; Not(OR(
    ISCHANGED(First_contract_usage_Rate__c),
    ISCHANGED(First_Estimate_Date__c),
    ISCHANGED(Xin_Last_Follow_Day__c),
    ISCHANGED(Lastest_Collect_Date__c),
    ISCHANGED(First_Collect_Date__c),
    ISCHANGED(BaddebtsAmount__c),
    ISCHANGED(Estimate_Asset_Cnt__c),
    ISCHANGED(Estimate_Num__c)
))
&amp;&amp;
/*Effective_Status__c = &quot;有効&quot;*/
and(Len(PRIORVALUE(Maintenance_Contract_No__c)) &gt; 1,PRIORVALUE(Contract_Start_Date__c) &lt;= today(), PRIORVALUE(Contract_End_Date__c) &gt;= today(),
NOT(ISBLANK(PRIORVALUE(upload_to_sap_time__c))))</errorConditionFormula>
    <errorMessage>不能修改已经生效的合同</errorMessage>
</ValidationRule>