buli
2023-07-07 f08088add834965ea9ee07dbd35804507e47f5e7
1
2
3
4
5
6
7
8
9
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Aset_AMM_Repair_chk</fullName>
    <active>true</active>
    <description>非OLY维修对象(RC送修)要跳过维修中心,且维修中心只能选北上广沈</description>
    <errorConditionFormula>TEXT(Delivered_Product__r.Product2.Can_Repair__c) =&apos;RC送修&apos;&amp;&amp;  OR(Exc_work_location__c=false,AND(TEXT(work_location_select__c) != &apos;北京办事处&apos;,TEXT(work_location_select__c) != &apos;上海办事处&apos;,TEXT(work_location_select__c) != &apos;沈阳办事处&apos;,TEXT(work_location_select__c) != &apos;广东办事处&apos;))&amp;&amp; ($User.Batch_User__c &lt;&gt;TRUE)</errorConditionFormula>
    <errorDisplayField>work_location_select__c</errorDisplayField>
    <errorMessage>非OLY维修对象(RC送修)类产品,要跳过维修中心且只能选北上广沈办事处</errorMessage>
</ValidationRule>