<?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 = '01210000000QjCN',
|
OR(Today() < Account.Contract_Decide_Start_Date__c,
|
Account.Contract_Decide_End_Date__c < Today())
|
)
|
)</errorConditionFormula>
|
<errorMessage>经销商的合同过期,不能决定报价。</errorMessage>
|
</ValidationRule>
|