<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Consum_Apply_Flag_Confim</fullName>
|
<active>false</active>
|
<description>学会提前14天申请限制</description>
|
<errorConditionFormula>AND(TEXT(demo_purpose2__c) = '学会展会',
|
IF( Campaign__c <> null,if( TODAY()-Request_shipping_day__c <= 14,true,false),false))&&or(and(isnew(),isnull(Old_Consum_Apply__c)),text(Status__c)=='草案中')
|
|
|
|
&& Not(ischanged(Loaner_cancel_request__c)) && Not(ischanged(Cancel_Reason__c))
|
&& ($User.ProfileId <>'00e10000000Y3o5')</errorConditionFormula>
|
<errorMessage>申请提交必须在14天以上才可以</errorMessage>
|
</ValidationRule>
|