binxie
2024-01-22 102afa21c115e8c8b9333a326c3d1af08fe76faf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Check_AgencyContract_Quote_Decide_Flag</fullName>
    <active>true</active>
    <description>販売店の契約が見積り決定不可になっています。</description>
    <errorConditionFormula>And(
    PRIORVALUE(Estimation_Decision__c) = False,
    Estimation_Decision__c = True,
    AND(
        /* 契約の場合 AgencyContract */
        Account.RecordTypeId = &apos;01210000000QjCN&apos;,
        OR(Today() &lt; Account.Contract_Decide_Start_Date__c,
        Account.Contract_Decide_End_Date__c &lt; Today())
    )
)</errorConditionFormula>
    <errorMessage>经销商的合同过期,不能决定报价。</errorMessage>
</ValidationRule>