binxie
2024-01-20 e0de9222da210f9c8eb1a9f5400f936a14923e11
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>You_Xiao_Ku_Cun_chk</fullName>
    <active>true</active>
    <description>有效库存不能小于0
2018/09/14修改前:
RecordTypeId = &apos;01210000000kOPR&apos; &amp;&amp; Quantity &gt; 0
&amp;&amp; You_Xiao_Ku_Cun__c  &lt; 0 &amp;&amp; AssetManageConfirm__c = TRUE
 &amp;&amp; NOT($User.Batch_User__c)
 &amp;&amp; $User.ProfileId &lt;&gt;&apos;00e10000000dEQx&apos;</description>
    <errorConditionFormula>RecordTypeId = &apos;01210000000kOPR&apos; &amp;&amp; Quantity &gt; 0
&amp;&amp; You_Xiao_Ku_Cun__c  &lt; 0 &amp;&amp; AssetManageConfirm__c = TRUE
 &amp;&amp; NOT($User.Batch_User__c)
 &amp;&amp; ($User.ProfileId  = &apos;00e10000000xnoT&apos; || CONTAINS($Label.ProfileId_EquCenCheckAndDepot, $User.ProfileId) || CONTAINS($Label.ProfileId_EquCenAdmin, $User.ProfileId))
&amp;&amp; (ISCHANGED(Out_of_wh__c) || ISCHANGED(Quantity))</errorConditionFormula>
    <errorDisplayField>X147P_reserch_target__c</errorDisplayField>
    <errorMessage>借出_分配_数 不能大于 设备的总数</errorMessage>
</ValidationRule>