黄千龙
2023-03-08 ca1c0956ec5d16a44bd0a2c10e0e49db37c0fb32
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?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;00e10000000Y3o5&apos;)
    &amp;&amp; ($User.ProfileId &lt;&gt;&apos;00e10000000xo1D&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;00e10000000dEQx&apos;
&amp;&amp; $User.ProfileId &lt;&gt;&apos;00e10000000xnoY&apos;
&amp;&amp; $User.ProfileId &lt;&gt;&apos;00ep0000000O4tG&apos;
&amp;&amp; DataMigration_Flag__c = False</errorConditionFormula>
    <errorMessage>现场到货确认后,才可以操作装机和上传签收单</errorMessage>
</ValidationRule>