<?xml version="1.0" encoding="UTF-8"?>
|
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
|
<fullName>Direct_Delivery_Logic_Only_SORC</fullName>
|
<active>true</active>
|
<errorConditionFormula>$Profile.Id != '00e10000000dEQx' /* GPI_系统管理员 不报错 */
|
&& $Profile.Id != '00e10000000Y3o5' /*系统管理员 不报错 */
|
&& $User.Id != '00510000000fSYI' /* Batch User 不报错 */
|
&& OR(Text(Status__c) = '草案中', IsBlank(Text(Status__c))) /* 草案中 だけチェックする */
|
&& AND(OR(Delivered_Product__r.Product2.Asset_Model_No__c = 'CH-S400-XZ-EA',Delivered_Product__r.Product2.Asset_Model_No__c = 'G400',Delivered_Product__r.Product2.Asset_Model_No__c = 'OEV321UH',Delivered_Product__r.Product2.Asset_Model_No__c = 'CLV-S200IR'),TEXT(On_site_repair__c) != '直送SORC修理')</errorConditionFormula>
|
<errorDisplayField>On_site_repair__c</errorDisplayField>
|
<errorMessage>本机型只开放直送SORC修理</errorMessage>
|
</ValidationRule>
|