binxie
2024-01-17 92d30efcdebfc59500385e018d597a6b6a946075
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>After_Request_shipping</fullName>
    <active>true</active>
    <description>//现场不确认或者欠品确认后,不能上传医院收到签字
现场到货确认后,才可以操作装机和上传签收单
(Rental_Apply_Equipment_Set_Cnt__c - Loaner_received_ng_num__c    =    0 
|| ( Lost_item_finish__c &gt; 0  &amp;&amp;  Lost_product_cnt__c  &lt;&gt; Rental_Apply_Equipment_Set_Detail_Cnt__c)</description>
    <errorConditionFormula>( Loaner_received_ng_num__c  &gt; 0)
&amp;&amp; 
(($User.ProfileId &lt;&gt;&apos;00eC800000005Cb&apos;)
&amp;&amp; 
(ISCHANGED(HP_received_sign_day__c )
    || ISCHANGED(HP_received_sign_text__c) 
)
&amp;&amp; NOT($User.Batch_User__c) &amp;&amp; $User.ProfileId &lt;&gt;&apos;00eC600000003SX&apos;
&amp;&amp; $User.ProfileId &lt;&gt;&apos;00eC600000004y6&apos;
&amp;&amp; DataMigration_Flag__c = False</errorConditionFormula>
    <errorDisplayField>Return_to_wh_staff__c</errorDisplayField>
    <errorMessage>现场到货确认后,才可以操作装机和上传签收单</errorMessage>
</ValidationRule>