<?xml version="1.0" encoding="UTF-8"?> 
 | 
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> 
 | 
    <fullName>Request_approval_day_earlier_14_day</fullName> 
 | 
    <active>false</active> 
 | 
    <errorConditionFormula>ISPICKVAL(demo_purpose2__c, "学会展会") && ( TODAY() >= Request_shipping_day__c -7) 
 | 
&&or(and(isnew(),ISBLANK(Old_Consum_Apply__c)),text(Status__c)=='草案中',TEXT(Status__c)="填写完毕" ) 
 | 
&& Not(ischanged(Loaner_cancel_request__c)) && Not(ischanged(Cancel_Reason__c)) 
 | 
&& ($User.ProfileId <>'00e10000000Y3o5')</errorConditionFormula> 
 | 
    <errorMessage>必须提前于希望到货日7天以上提交申请</errorMessage> 
 | 
</ValidationRule> 
 |