<?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 && ( ISBLANK(Asset_return_day2__c) || ISBLANK(Bollow_Date__c) )) || (RecordTypeId = '01210000000NPDp' || RecordTypeId = '01210000000NPDz'))&& ((ISNEW() || ISCHANGED(Date__c)) && Date__c> TODAY())</errorConditionFormula>
|
<errorDisplayField>Date__c</errorDisplayField>
|
<errorMessage>OPD/SIS/NTC实施日不能大于今天</errorMessage>
|
</ValidationRule>
|