binxie
2024-01-22 102afa21c115e8c8b9333a326c3d1af08fe76faf
1
2
3
4
5
6
7
8
9
10
11
12
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Direct_Delivery_Logic_SORC_CLVS200IR</fullName>
    <active>true</active>
    <errorConditionFormula>$Profile.Id != &apos;00e10000000dEQx&apos; /* GPI_系统管理员 不报错 */
/*&amp;&amp; $Profile.Id != &apos;00e10000000Y3o5&apos; 系统管理员 不报错 */
&amp;&amp; $User.Id != &apos;00510000000fSYI&apos; /* Batch User 不报错 */
&amp;&amp; OR(Text(Status__c) = &apos;草案中&apos;, IsBlank(Text(Status__c))) /* 草案中 だけチェックする */
&amp;&amp; AND(Delivered_Product__r.Product2.Asset_Model_No__c = &apos;CLV-S200-IR&apos;,OR(Affiliation_RC__c=&apos;SHRC&apos;,Affiliation_RC__c=&apos;SYRC&apos;,Affiliation_RC__c=&apos;HZRC&apos;),TEXT(On_site_repair__c) != &apos;直送SORC修理&apos;)</errorConditionFormula>
    <errorDisplayField>On_site_repair__c</errorDisplayField>
    <errorMessage>本机型只开放直送SORC修理</errorMessage>
</ValidationRule>