<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Cannot_Apply_From_The_OPD</fullName>
|
<active>true</active>
|
<description>从OPD计划页面新建的备品申请,如选择已购待货,在保存时系统提醒请从注残页面进行备品申请。</description>
|
<errorConditionFormula>(ISNEW()||DATEVALUE(CreatedDate)
|
>= DATE(2021,06,18) )&&TEXT(demo_purpose2__c ) =='已购待货'&&!ISBLANK(OPDPlan__c)&&!ISBLANK(Old_Rental_Apply__c)</errorConditionFormula>
|
<errorDisplayField>Combine_Pack__c</errorDisplayField>
|
<errorMessage>如选择“已购待货”,请在注残页面进行备品申请</errorMessage>
|
</ValidationRule>
|