<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Can_Not_Select_Unavailable_FSD</fullName>
|
<active>true</active>
|
<description>配套明细状态为不可用,不可申请</description>
|
<errorConditionFormula>IF(Rental_Apply__r.Is_Auto__c && ISNEW()&& (Loaner_categoryII_F__c =='台车' || Loaner_categoryII_F__c=='监视器' || Loaner_categoryII_F__c=='录像设备'), false,(NOT(DataMigration_Flag__c)&& ISNEW()
|
&& NOT(Rental_Apply_Equipment_Set__r.Substitute_flag__c)
|
&& (Loaner_categoryII_F__c!='台车' && Loaner_categoryII_F__c!='监视器' && Loaner_categoryII_F__c!='录像设备')
|
&& (ISPICKVAL(Rental_Apply__r.demo_purpose2__c, '试用(有询价)') || ISPICKVAL(Rental_Apply__r.demo_purpose2__c, '试用(无询价)'))
|
&& NOT(ISBLANK(Fixture_Set_Detail__c))&&NOT(Fixture_Set_Detail__r.Product_Status_Flag__c)
|
&& Rental_Apply_Equipment_Set__r.Received_NG_ReAssign_Text__c = false))</errorConditionFormula>
|
<errorDisplayField>Received_loaner_time__c</errorDisplayField>
|
<errorMessage>使用目的2为'试用(有询价)'或'试用(无询价)'时,停止的产品不可申请</errorMessage>
|
</ValidationRule>
|