涂煌豪
2022-04-11 a002dc01b27e6281f163eb35661c4a9e9541ea52
1
2
3
4
5
6
7
8
9
10
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Date_Validation</fullName>
    <active>true</active>
    <description>OPD/SIS/NTC实施日只能小于今天
//2021-11-08  mzy  SWAG-C899Q7  由 实施日不能大于等于今天,调整为不能大于今天,取消等于今天的限制。</description>
    <errorConditionFormula>((Loaner_request_no1__c !=null &amp;&amp; ( ISBLANK(Asset_return_day2__c) || ISBLANK(Bollow_Date__c) )) || (RecordTypeId = &apos;01210000000NPDp&apos; || RecordTypeId = &apos;01210000000NPDz&apos;))&amp;&amp; ((ISNEW()  || ISCHANGED(Date__c)) &amp;&amp; Date__c&gt; TODAY())</errorConditionFormula>
    <errorDisplayField>Date__c</errorDisplayField>
    <errorMessage>OPD/SIS/NTC实施日不能大于今天</errorMessage>
</ValidationRule>