binxie
2024-01-17 92d30efcdebfc59500385e018d597a6b6a946075
1
2
3
4
5
6
7
8
9
10
11
12
13
<?xml version="1.0" encoding="UTF-8"?>
<ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata">
    <fullName>Must_Input_ChangeQuantityReason</fullName>
    <active>false</active>
    <description>看 ISCHANGED(ChangeQuantityHistory__c)</description>
    <errorConditionFormula>Not(IsNew())
&amp;&amp; PRIORVALUE(Quantity) != Quantity
&amp;&amp;  ISBLANK(TEXT(ChangeQuantityReason__c)) &amp;&amp; AssetManageConfirm__c = TRUE
&amp;&amp; NOT($User.Batch_User__c) 
&amp;&amp; $User.ProfileId &lt;&gt;&apos;00e10000000dEQx&apos;</errorConditionFormula>
    <errorDisplayField>ChangeQuantityReason__c</errorDisplayField>
    <errorMessage>数量修改必须填写数量修改理由</errorMessage>
</ValidationRule>